diff options
author | Kristian Rietveld <kris@lanedo.com> | 2012-02-19 16:02:09 +0100 |
---|---|---|
committer | Kristian Rietveld <kris@lanedo.com> | 2012-04-10 21:50:07 +0200 |
commit | d5ac2bd37216899f09efa1ad29894062d325d1a8 (patch) | |
tree | 98fe125b21b2534712e3d4ac5b8109e5437bb59c /gdk | |
parent | c10b65519cf6f5d1bf1d05024d1d1a47b3165f3b (diff) | |
download | gtk+-d5ac2bd37216899f09efa1ad29894062d325d1a8.tar.gz |
Export break_all_grabs() within Quartz backend
Function was renamed to _gdk_quartz_events_break_all_grabs().
Diffstat (limited to 'gdk')
-rw-r--r-- | gdk/quartz/gdkevents-quartz.c | 8 | ||||
-rw-r--r-- | gdk/quartz/gdkprivate-quartz.h | 1 |
2 files changed, 5 insertions, 4 deletions
diff --git a/gdk/quartz/gdkevents-quartz.c b/gdk/quartz/gdkevents-quartz.c index 7ae6a69402..3cb249f1bc 100644 --- a/gdk/quartz/gdkevents-quartz.c +++ b/gdk/quartz/gdkevents-quartz.c @@ -73,8 +73,8 @@ _gdk_quartz_display_has_pending (GdkDisplay *display) (_gdk_quartz_event_loop_check_pending ())); } -static void -break_all_grabs (guint32 time) +void +_gdk_quartz_events_break_all_grabs (guint32 time) { GList *list, *l; GdkDeviceManager *device_manager; @@ -1178,7 +1178,7 @@ gdk_event_translate (GdkEvent *event, if (event_type == NSAppKitDefined) { if ([nsevent subtype] == NSApplicationDeactivatedEventType) - break_all_grabs (get_time_from_ns_event (nsevent)); + _gdk_quartz_events_break_all_grabs (get_time_from_ns_event (nsevent)); /* This could potentially be used to break grabs when clicking * on the title. The subtype 20 is undocumented so it's probably @@ -1237,7 +1237,7 @@ gdk_event_translate (GdkEvent *event, */ if ([(GdkQuartzNSWindow *)nswindow isInMove]) { - break_all_grabs (get_time_from_ns_event (nsevent)); + _gdk_quartz_events_break_all_grabs (get_time_from_ns_event (nsevent)); return FALSE; } diff --git a/gdk/quartz/gdkprivate-quartz.h b/gdk/quartz/gdkprivate-quartz.h index cc35649cbe..71fdbb9b40 100644 --- a/gdk/quartz/gdkprivate-quartz.h +++ b/gdk/quartz/gdkprivate-quartz.h @@ -65,6 +65,7 @@ GdkModifierType _gdk_quartz_events_get_current_keyboard_modifiers (void); GdkModifierType _gdk_quartz_events_get_current_mouse_modifiers (void); void _gdk_quartz_events_send_enter_notify_event (GdkWindow *window); +void _gdk_quartz_events_break_all_grabs (guint32 time); /* Event loop */ gboolean _gdk_quartz_event_loop_check_pending (void); |