x11/surface: Remember when there is a pending ConfigureNotify

This will be used to decide whether to try to resize windows when .
This commit is contained in:
Jonas Ådahl
2020-12-05 11:02:58 +01:00
parent 3bbeb891c4
commit 2217cf8ea2
3 changed files with 3 additions and 0 deletions

View File

@@ -964,6 +964,7 @@ gdk_x11_display_translate_event (GdkEventTranslator *translator,
surface_impl->next_layout.configured_width = configured_width;
surface_impl->next_layout.configured_height = configured_height;
surface_impl->next_layout.surface_geometry_dirty = TRUE;
surface_impl->next_layout.configure_pending = TRUE;
gdk_surface_request_layout (surface);
}

View File

@@ -341,6 +341,7 @@ gdk_x11_surface_compute_size (GdkSurface *surface)
_gdk_x11_surface_update_size (impl);
impl->next_layout.surface_geometry_dirty = FALSE;
impl->next_layout.configure_pending = FALSE;
}
else
{

View File

@@ -75,6 +75,7 @@ struct _GdkX11Surface
struct {
int configured_width;
int configured_height;
gboolean configure_pending;
gboolean surface_geometry_dirty;
} next_layout;