Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 7 additions & 10 deletions gfx/common/wayland_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -247,16 +247,13 @@ void gfx_ctx_wl_get_video_size_common(void *data,

wl->reported_display_size = true;

/* If window is not ready get any monitor */
if (!oi)
wl_list_for_each(od, &wl->all_outputs, link)
{
oi = od->output;
break;
};

*width = oi->width;
*height = oi->height;
/* We won't know which monitor we're targeting until the surface enters it.
* This only happens once we've attached a buffer to it. */
if (oi)
{
*width = oi->width;
*height = oi->height;
}
}
else
{
Expand Down
Loading