[gtk+/gtk-3-22] Revert "gdkwindow: configure native windows in move_native_children()"
- From: Olivier Fourdan <ofourdan src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-3-22] Revert "gdkwindow: configure native windows in move_native_children()"
- Date: Mon, 14 Nov 2016 11:13:01 +0000 (UTC)
commit f70039cb9603a02d2369fec4038abf40a1711155
Author: Olivier Fourdan <ofourdan redhat com>
Date: Wed Nov 2 10:13:11 2016 +0100
Revert "gdkwindow: configure native windows in move_native_children()"
This reverts commit 12579fe71b3b8f79eb9c1b80e429443bcc437dd0.
gdk/gdkwindow.c | 26 +++-----------------------
1 files changed, 3 insertions(+), 23 deletions(-)
---
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index 0d61a12..bcf148b 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -5975,24 +5975,6 @@ gdk_window_move_resize_toplevel (GdkWindow *window,
_gdk_synthesize_crossing_events_for_geometry_change (window);
}
-static void
-configure_native_child (GdkWindow *window)
-{
- GdkDisplay *display;
- GdkEvent *event;
-
- event = gdk_event_new (GDK_CONFIGURE);
-
- event->configure.window = g_object_ref (window);
- event->configure.send_event = FALSE;
- event->configure.x = window->x;
- event->configure.y = window->y;
- event->configure.width = window->width;
- event->configure.height = window->height;
-
- gdk_event_put (event);
- gdk_event_free (event);
-}
static void
move_native_children (GdkWindow *private)
@@ -6013,10 +5995,7 @@ move_native_children (GdkWindow *private)
child->width, child->height);
}
else
- {
- configure_native_child (child);
- move_native_children (child);
- }
+ move_native_children (child);
}
}
@@ -6104,7 +6083,8 @@ gdk_window_move_resize_internal (GdkWindow *window,
window->x, window->y,
window->width, window->height);
}
- else
+ else if (old_abs_x != window->abs_x ||
+ old_abs_y != window->abs_y)
move_native_children (window);
if (expose)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]