diff options
author | Alexander Larsson <alexl@redhat.com> | 2008-12-15 14:02:52 +0100 |
---|---|---|
committer | Alexander Larsson <alex@localhost.localdomain> | 2009-04-02 10:15:15 +0200 |
commit | 7b2b9a0219ed116d34250d4bed000467fdf3642e (patch) | |
tree | a0610bf8e0be02fe7b49a35d710685b527f1300b /gdk/gdkdisplay.c | |
parent | f2b50ff638b5aeff67dd1f253864b29cea89677e (diff) | |
download | gtk+-7b2b9a0219ed116d34250d4bed000467fdf3642e.tar.gz |
Implement cursors
Diffstat (limited to 'gdk/gdkdisplay.c')
-rw-r--r-- | gdk/gdkdisplay.c | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/gdk/gdkdisplay.c b/gdk/gdkdisplay.c index ce07af7d71..44b8b888f5 100644 --- a/gdk/gdkdisplay.c +++ b/gdk/gdkdisplay.c @@ -737,17 +737,6 @@ generate_grab_broken_event (GdkWindow *window, } } -static void -set_window_under_pointer (GdkDisplay *display, - GdkWindow *window) -{ - if (display->pointer_info.window_under_pointer) - g_object_unref (display->pointer_info.window_under_pointer); - display->pointer_info.window_under_pointer = window; - if (window) - g_object_ref (window); -} - void _gdk_display_set_has_pointer_grab (GdkDisplay *display, GdkWindow *window, @@ -840,7 +829,7 @@ _gdk_display_set_has_pointer_grab (GdkDisplay *display, /* !owner_event Grabbing a window that we're not inside, current status is now NULL (i.e. outside grabbed window) */ if (!owner_events && display->pointer_info.window_under_pointer != window) - set_window_under_pointer (display, NULL); + _gdk_display_set_window_under_pointer (display, NULL); } display->pointer_grab.window = window; @@ -966,7 +955,7 @@ _gdk_display_unset_has_pointer_grab (GdkDisplay *display, } /* We're now ungrabbed, update the window_under_pointer */ - set_window_under_pointer (display, pointer_window); + _gdk_display_set_window_under_pointer (display, pointer_window); if (implicit) generate_grab_broken_event (old_grab_window, |