diff options
author | Matthias Clasen <mclasen@redhat.com> | 2017-08-08 19:45:09 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2017-08-11 15:45:24 -0400 |
commit | 9859f8f69f004dd16c2fc54614c121c5852226b6 (patch) | |
tree | b273418a33395cf03fdc56b8b4beb8bcf21bda66 /gdk/quartz | |
parent | c409fca703cd5e8c90b2843aa2613b34405284b9 (diff) | |
download | gtk+-9859f8f69f004dd16c2fc54614c121c5852226b6.tar.gz |
Allow passing a NULL window to gdk_device_query_state
Interpret NULL as "root window" here - we only have one
screen nowadays, so there is no choice involved, and this
will let us avoid dealing with the root window in the
fontend code.
Diffstat (limited to 'gdk/quartz')
-rw-r--r-- | gdk/quartz/gdkdevice-core-quartz.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gdk/quartz/gdkdevice-core-quartz.c b/gdk/quartz/gdkdevice-core-quartz.c index da85990579..76f11523b6 100644 --- a/gdk/quartz/gdkdevice-core-quartz.c +++ b/gdk/quartz/gdkdevice-core-quartz.c @@ -258,7 +258,6 @@ gdk_quartz_device_core_query_state_helper (GdkWindow *window, static void gdk_quartz_device_core_query_state (GdkDevice *device, GdkWindow *window, - GdkWindow **root_window, GdkWindow **child_window, gdouble *root_x, gdouble *root_y, @@ -270,6 +269,9 @@ gdk_quartz_device_core_query_state (GdkDevice *device, NSPoint point; gint x_tmp, y_tmp; + if (window == NULL) + window = _gdk_root; + found_window = gdk_quartz_device_core_query_state_helper (window, device, win_x, win_y, mask); |