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 ()));
|
(_gdk_quartz_event_loop_check_pending ()));
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
void
|
||||||
break_all_grabs (guint32 time)
|
_gdk_quartz_events_break_all_grabs (guint32 time)
|
||||||
{
|
{
|
||||||
GList *list, *l;
|
GList *list, *l;
|
||||||
GdkDeviceManager *device_manager;
|
GdkDeviceManager *device_manager;
|
||||||
@ -1178,7 +1178,7 @@ gdk_event_translate (GdkEvent *event,
|
|||||||
if (event_type == NSAppKitDefined)
|
if (event_type == NSAppKitDefined)
|
||||||
{
|
{
|
||||||
if ([nsevent subtype] == NSApplicationDeactivatedEventType)
|
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
|
/* This could potentially be used to break grabs when clicking
|
||||||
* on the title. The subtype 20 is undocumented so it's probably
|
* 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])
|
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;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -65,6 +65,7 @@ GdkModifierType _gdk_quartz_events_get_current_keyboard_modifiers (void);
|
|||||||
GdkModifierType _gdk_quartz_events_get_current_mouse_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_send_enter_notify_event (GdkWindow *window);
|
||||||
|
void _gdk_quartz_events_break_all_grabs (guint32 time);
|
||||||
|
|
||||||
/* Event loop */
|
/* Event loop */
|
||||||
gboolean _gdk_quartz_event_loop_check_pending (void);
|
gboolean _gdk_quartz_event_loop_check_pending (void);
|
||||||
|
Loading…
Reference in New Issue
Block a user