diff options
author | Carlos Garnacho <carlosg@gnome.org> | 2020-06-24 11:20:15 +0200 |
---|---|---|
committer | Carlos Garnacho <carlosg@gnome.org> | 2020-06-24 11:24:04 +0200 |
commit | 469a4a73f971e142f707cf22902ca9af124b5aef (patch) | |
tree | 2e246dac578d730f705aca06829b5e38f22b313f /gdk | |
parent | f401b05e7b697c7eafe5e4436830e0229e58aecd (diff) | |
download | gtk+-469a4a73f971e142f707cf22902ca9af124b5aef.tar.gz |
gdk: Drop gdk_device_get_last_event_surface()
This kind of transient state sets the expectative that events update
devices, while it's more accurate to say that devices generate events.
It does not make to expose this function anymore.
Diffstat (limited to 'gdk')
-rw-r--r-- | gdk/gdkdevice.c | 27 | ||||
-rw-r--r-- | gdk/gdkdevice.h | 3 |
2 files changed, 0 insertions, 30 deletions
diff --git a/gdk/gdkdevice.c b/gdk/gdkdevice.c index 29a1fcab47..4889d7b232 100644 --- a/gdk/gdkdevice.c +++ b/gdk/gdkdevice.c @@ -1283,33 +1283,6 @@ _gdk_device_surface_at_position (GdkDevice *device, } /** - * gdk_device_get_last_event_surface: - * @device: a #GdkDevice, with a source other than %GDK_SOURCE_KEYBOARD - * - * Gets information about which surface the given pointer device is in, based on events - * that have been received so far from the display server. If another application - * has a pointer grab, or this application has a grab with owner_events = %FALSE, - * %NULL may be returned even if the pointer is physically over one of this - * application's surfaces. - * - * Returns: (transfer none) (allow-none): the last surface the device - */ -GdkSurface * -gdk_device_get_last_event_surface (GdkDevice *device) -{ - GdkDisplay *display; - GdkPointerSurfaceInfo *info; - - g_return_val_if_fail (GDK_IS_DEVICE (device), NULL); - g_return_val_if_fail (device->source != GDK_SOURCE_KEYBOARD, NULL); - - display = gdk_device_get_display (device); - info = _gdk_display_get_pointer_info (display, device); - - return info->surface_under_pointer; -} - -/** * gdk_device_get_vendor_id: * @device: a physical #GdkDevice * diff --git a/gdk/gdkdevice.h b/gdk/gdkdevice.h index 0eefbb6cac..058d0b67bd 100644 --- a/gdk/gdkdevice.h +++ b/gdk/gdkdevice.h @@ -144,9 +144,6 @@ GDK_AVAILABLE_IN_ALL GdkDeviceType gdk_device_get_device_type (GdkDevice *device); GDK_AVAILABLE_IN_ALL -GdkSurface *gdk_device_get_last_event_surface (GdkDevice *device); - -GDK_AVAILABLE_IN_ALL const gchar *gdk_device_get_vendor_id (GdkDevice *device); GDK_AVAILABLE_IN_ALL const gchar *gdk_device_get_product_id (GdkDevice *device); |