[gtk+/client-side-windows] Update _gdk_windowing_pointer_grab
- From: Richard Hult <rhult src gnome org>
- To: svn-commits-list gnome org
- Subject: [gtk+/client-side-windows] Update _gdk_windowing_pointer_grab
- Date: Sat, 20 Jun 2009 05:53:50 -0400 (EDT)
commit 52ca2f29cc6108ddc8488545a80253e3be874c87
Author: Richard Hult <richard imendio com>
Date: Sat Jun 20 11:37:05 2009 +0200
Update _gdk_windowing_pointer_grab
gdk/quartz/gdkevents-quartz.c | 25 +++++++------------------
1 files changed, 7 insertions(+), 18 deletions(-)
---
diff --git a/gdk/quartz/gdkevents-quartz.c b/gdk/quartz/gdkevents-quartz.c
index db73a11..fc2be16 100644
--- a/gdk/quartz/gdkevents-quartz.c
+++ b/gdk/quartz/gdkevents-quartz.c
@@ -116,28 +116,17 @@ gdk_display_pointer_ungrab (GdkDisplay *display,
}
GdkGrabStatus
-gdk_pointer_grab (GdkWindow *window,
- gboolean owner_events,
- GdkEventMask event_mask,
- GdkWindow *confine_to,
- GdkCursor *cursor,
- guint32 time)
+_gdk_windowing_pointer_grab (GdkWindow *window,
+ GdkWindow *native,
+ gboolean owner_events,
+ GdkEventMask event_mask,
+ GdkWindow *confine_to,
+ GdkCursor *cursor,
+ guint32 time)
{
- GdkWindow *native;
-
g_return_val_if_fail (GDK_IS_WINDOW (window), 0);
g_return_val_if_fail (confine_to == NULL || GDK_IS_WINDOW (confine_to), 0);
- native = gdk_window_get_toplevel (window);
-
- /* TODO: What do we do for offscreens and their children? We need to proxy the grab somehow */
- if (!GDK_IS_WINDOW_IMPL_QUARTZ (GDK_WINDOW_OBJECT (native)->impl))
- return GDK_GRAB_SUCCESS;
-
- if (!_gdk_window_has_impl (window) &&
- !gdk_window_is_viewable (window))
- return GDK_GRAB_NOT_VIEWABLE;
-
_gdk_display_add_pointer_grab (_gdk_display,
window,
native,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]