wayland: Always store unconfigured size

This means it'll always be as up to date GdkWindow::width/height. We
still skip the resize for non-configured windows though, to avoid
mapping with the wrong size.

The commit f06ee688fe also accidentally
removed the unconfigured size setting completely, so this essentially
adds it back, but always sets it.

Closes: https://gitlab.gnome.org/GNOME/gtk/-/issues/2582
This commit is contained in:
Jonas Ådahl 2020-04-06 14:20:43 +02:00
parent cdd4349bfe
commit c5d9c8be2b

View File

@ -1156,6 +1156,8 @@ gdk_wayland_window_maybe_configure (GdkWindow *window,
gboolean is_xdg_popup;
gboolean is_visible;
impl->unconfigured_width = calculate_width_without_margin (window, width);
impl->unconfigured_height = calculate_height_without_margin (window, height);
if (should_inhibit_resize (window))
return;