wayland: Always update unconfigured size

If the window size didn't change, we should still update the
unconfigured size as the window size might not be up to date.
This commit is contained in:
Jonas Ådahl 2020-04-06 12:05:58 +02:00
parent a4984cfd40
commit 2e5f344e3c

View File

@ -1145,10 +1145,6 @@ gdk_wayland_window_maybe_configure (GdkWindow *window,
gboolean is_xdg_popup; gboolean is_xdg_popup;
gboolean is_visible; gboolean is_visible;
if (window->width == width &&
window->height == height &&
impl->scale == scale)
return;
if (needs_initial_configure (window) && if (needs_initial_configure (window) &&
!impl->initial_configure_received) !impl->initial_configure_received)
@ -1158,6 +1154,11 @@ gdk_wayland_window_maybe_configure (GdkWindow *window,
return; return;
} }
if (window->width == width &&
window->height == height &&
impl->scale == scale)
return;
/* For xdg_popup using an xdg_positioner, there is a race condition if /* For xdg_popup using an xdg_positioner, there is a race condition if
* the application tries to change the size after it's mapped, but before * the application tries to change the size after it's mapped, but before
* the initial configure is received, so hide and show the surface again * the initial configure is received, so hide and show the surface again