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:
parent
cdd4349bfe
commit
c5d9c8be2b
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user