mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-11 03:10:09 +00:00
Export break_all_grabs() within Quartz backend
Function was renamed to _gdk_quartz_events_break_all_grabs().
This commit is contained in:
parent
c10b65519c
commit
d5ac2bd372
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user