summaryrefslogtreecommitdiff
path: root/gdk/x11/gdkdisplay-x11.c
diff options
context:
space:
mode:
authorJonas Ådahl <jadahl@gmail.com>2020-12-05 00:07:21 +0100
committerJonas Ådahl <jadahl@gmail.com>2020-12-07 20:37:29 +0100
commitff23a2a58238b1b69142754254c6159b08f7fa4b (patch)
tree0c4cb5224ca6a59eb0c9b69de0d69751294fe33a /gdk/x11/gdkdisplay-x11.c
parent8396bdb759543442c6bbb9e5b0f4ebd7c26a0fce (diff)
downloadgtk+-ff23a2a58238b1b69142754254c6159b08f7fa4b.tar.gz
x11: Use resize counting for freezing updates too
It's already keep strack of when we're waiting for configure events, so lets reuse it. This fixes an issue where reshown dialogs wouldn't reappear.
Diffstat (limited to 'gdk/x11/gdkdisplay-x11.c')
-rw-r--r--gdk/x11/gdkdisplay-x11.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/gdk/x11/gdkdisplay-x11.c b/gdk/x11/gdkdisplay-x11.c
index 692f85230c..73529906c5 100644
--- a/gdk/x11/gdkdisplay-x11.c
+++ b/gdk/x11/gdkdisplay-x11.c
@@ -920,16 +920,6 @@ gdk_x11_display_translate_event (GdkEventTranslator *translator,
int ty = 0;
Window child_window = 0;
- if (surface_impl->pending_configure_events == 1)
- {
- surface_impl->pending_configure_events = 0;
- gdk_surface_thaw_updates (surface);
- }
- else if (surface_impl->pending_configure_events > 1)
- {
- surface_impl->pending_configure_events--;
- }
-
x = y = 0;
gdk_x11_display_error_trap_push (display);
if (XTranslateCoordinates (GDK_SURFACE_XDISPLAY (surface),