[gtk+/client-side-windows] Add gdk_window_offscreen_children_changed call



commit 4987ca9235c672e34adab84aea3886b0a0e2f060
Author: Alexander Larsson <alexl redhat com>
Date:   Thu Jun 11 12:06:01 2009 +0200

    Add gdk_window_offscreen_children_changed call
    
    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 |    5 +++++
 gdk/gdkwindow.h |    1 +
 2 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index ca042e6..fae8bbb 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -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)
diff --git a/gdk/gdkwindow.h b/gdk/gdkwindow.h
index 7885b1b..752f6b6 100644
--- a/gdk/gdkwindow.h
+++ b/gdk/gdkwindow.h
@@ -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,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]