diff options
author | Carlos Garnacho <carlosg@gnome.org> | 2020-07-30 17:46:49 +0200 |
---|---|---|
committer | Carlos Garnacho <carlosg@gnome.org> | 2020-07-30 18:44:40 +0200 |
commit | 46eb0543373a7734e5ddeed7aa0a877af3bcf2ad (patch) | |
tree | c7f4034140e4ea9963bf9e125a49d5124b675375 /gdk/gdkdisplay.c | |
parent | 4a2050e220adabd09ecfadac99f208dc31b5ff12 (diff) | |
download | gtk+-46eb0543373a7734e5ddeed7aa0a877af3bcf2ad.tar.gz |
gdk: Drop gdk_device_get_device_type()
There is no longer a hierarchy of devices, or none that is seen
on the outside.
Diffstat (limited to 'gdk/gdkdisplay.c')
-rw-r--r-- | gdk/gdkdisplay.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/gdk/gdkdisplay.c b/gdk/gdkdisplay.c index 14abf69c73..c24d1216be 100644 --- a/gdk/gdkdisplay.c +++ b/gdk/gdkdisplay.c @@ -639,12 +639,7 @@ switch_to_pointer_grab (GdkDisplay *display, if (grab == NULL /* ungrab */ || (!last_grab->owner_events && grab->owner_events) /* switched to owner_events */ ) { - /* Ungrabbed physical devices don't have a position by - * itself, rather depend on its logical pointer, so - * it doesn't make sense to track any position for - * these after the grab - */ - if (grab || gdk_device_get_device_type (device) != GDK_DEVICE_TYPE_PHYSICAL) + if (grab) new_toplevel = get_current_toplevel (display, device, &x, &y, &state); if (new_toplevel) |