diff options
author | Alexander Larsson <alexl@redhat.com> | 2018-03-20 16:25:50 +0100 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2018-03-20 16:25:50 +0100 |
commit | 4ac450b324bcae047d3fa53986133e18da0ec1bf (patch) | |
tree | 8d738d02d54fedaa325dece85fbe2ffcfcf6fb64 /gdk/quartz | |
parent | 19ca2789c090f74f7785245be0121dcbae7b33fe (diff) | |
download | gtk+-4ac450b324bcae047d3fa53986133e18da0ec1bf.tar.gz |
Convert all references to GdkEvent->surface
Diffstat (limited to 'gdk/quartz')
-rw-r--r-- | gdk/quartz/GdkQuartzNSWindow.c | 2 | ||||
-rw-r--r-- | gdk/quartz/gdkevents-quartz.c | 16 |
2 files changed, 9 insertions, 9 deletions
diff --git a/gdk/quartz/GdkQuartzNSWindow.c b/gdk/quartz/GdkQuartzNSWindow.c index 1a567cf8ad..f5359d8318 100644 --- a/gdk/quartz/GdkQuartzNSWindow.c +++ b/gdk/quartz/GdkQuartzNSWindow.c @@ -39,7 +39,7 @@ event = gdk_event_new (GDK_DELETE); - event->any.window = g_object_ref (window); + event->any.surface = g_object_ref (window); event->any.send_event = FALSE; _gdk_event_queue_append (gdk_display_get_default (), event); diff --git a/gdk/quartz/gdkevents-quartz.c b/gdk/quartz/gdkevents-quartz.c index e84104512f..b1109b0bc3 100644 --- a/gdk/quartz/gdkevents-quartz.c +++ b/gdk/quartz/gdkevents-quartz.c @@ -146,8 +146,8 @@ _gdk_quartz_events_break_all_grabs (guint32 time) static void fixup_event (GdkEvent *event) { - if (event->any.window) - g_object_ref (event->any.window); + if (event->any.surface) + g_object_ref (event->any.surface); if (((event->any.type == GDK_ENTER_NOTIFY) || (event->any.type == GDK_LEAVE_NOTIFY)) && (event->crossing.child_window != NULL)) @@ -515,7 +515,7 @@ generate_motion_event (GdkSurface *window) GdkQuartzDeviceManagerCore *device_manager; event = gdk_event_new (GDK_MOTION_NOTIFY); - event->any.window = NULL; + event->any.surface = NULL; event->any.send_event = TRUE; screen_point = [NSEvent mouseLocation]; @@ -598,7 +598,7 @@ _gdk_quartz_events_send_map_event (GdkSurface *window) GdkEvent event; event.any.type = GDK_MAP; - event.any.window = window; + event.any.surface = window; gdk_event_put (&event); } @@ -1680,8 +1680,8 @@ gdk_event_translate (GdkEvent *event, done: if (return_val) { - if (event->any.window) - g_object_ref (event->any.window); + if (event->any.surface) + g_object_ref (event->any.surface); if (((event->any.type == GDK_ENTER_NOTIFY) || (event->any.type == GDK_LEAVE_NOTIFY)) && (event->crossing.child_window != NULL)) @@ -1690,7 +1690,7 @@ gdk_event_translate (GdkEvent *event, else { /* Mark this event as having no resources to be freed */ - event->any.window = NULL; + event->any.surface = NULL; event->any.type = GDK_NOTHING; } @@ -1710,7 +1710,7 @@ _gdk_quartz_display_queue_events (GdkDisplay *display) event = gdk_event_new (GDK_NOTHING); - event->any.window = NULL; + event->any.surface = NULL; event->any.send_event = FALSE; ((GdkEventPrivate *)event)->flags |= GDK_EVENT_PENDING; |