]> Pileus Git - ~andy/gtk/commitdiff
Add gdk_window_offscreen_children_changed call
authorAlexander Larsson <alexl@redhat.com>
Thu, 11 Jun 2009 10:06:01 +0000 (12:06 +0200)
committerAlexander Larsson <alexl@redhat.com>
Thu, 11 Jun 2009 10:06:01 +0000 (12:06 +0200)
You can call this if you have offscreen children and the geometry of
them changed. This will cause re-picking of the active window sending
enter and leave events as needed.

gdk/gdkwindow.c
gdk/gdkwindow.h

index ca042e6f406cfb12a90e0724ede06d8a80b671a4..fae8bbbb2dea653516814272e8273087f18b4352 100644 (file)
@@ -8685,6 +8685,11 @@ gdk_window_get_has_offscreen_children (GdkWindow *window)
   return private->has_offscreen_children;
 }
 
+void
+gdk_window_offscreen_children_changed (GdkWindow *window)
+{
+  _gdk_syntesize_crossing_events_for_geometry_change (window);
+}
 
 void
 _gdk_syntesize_crossing_events_for_geometry_change (GdkWindow *changed_window)
index 7885b1bf1a3cb58b6c0f2021fa9754e2cb1bfc10..752f6b66cb26a5c651fbc23b454473566b9cdaab 100644 (file)
@@ -664,6 +664,7 @@ GdkPixmap *gdk_window_get_offscreen_pixmap   (GdkWindow     *window);
 void       gdk_window_set_has_offscreen_children (GdkWindow     *window,
                                                  gboolean       has_offscreen_children);
 gboolean   gdk_window_get_has_offscreen_children (GdkWindow     *window);
+void       gdk_window_offscreen_children_changed (GdkWindow     *window);
 
 void       gdk_window_redirect_to_drawable   (GdkWindow     *window,
                                               GdkDrawable   *drawable,