summaryrefslogtreecommitdiff
path: root/gdk/gdkdevice.c
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2016-10-25 09:54:37 +0200
committerAlexander Larsson <alexl@redhat.com>2016-10-25 09:54:37 +0200
commit70935f09526ba9f1d0b2f6af10e18712df73eda9 (patch)
tree5faccfc562bcf8dee34ebbd6424d86f31af236c5 /gdk/gdkdevice.c
parent639898000e8e1f8bf1a72b778978a2c8e30c2d9b (diff)
downloadgtk+-70935f09526ba9f1d0b2f6af10e18712df73eda9.tar.gz
Drop support for offscreen GdkWindowswip/alexl/no-offscreen
These complicate a lot of GdkWindow internals to implement features that not a lot of apps use, and will be better achieved using gsk. So, we just drop it all.
Diffstat (limited to 'gdk/gdkdevice.c')
-rw-r--r--gdk/gdkdevice.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/gdk/gdkdevice.c b/gdk/gdkdevice.c
index e489d5a95a..13451a5400 100644
--- a/gdk/gdkdevice.c
+++ b/gdk/gdkdevice.c
@@ -1456,18 +1456,6 @@ gdk_device_grab (GdkDevice *device,
native = gdk_window_get_toplevel (window);
- while (native->window_type == GDK_WINDOW_OFFSCREEN)
- {
- native = gdk_offscreen_window_get_embedder (native);
-
- if (native == NULL ||
- (!_gdk_window_has_impl (native) &&
- !gdk_window_is_viewable (native)))
- return GDK_GRAB_NOT_VIEWABLE;
-
- native = gdk_window_get_toplevel (native);
- }
-
if (native == NULL || GDK_WINDOW_DESTROYED (native))
return GDK_GRAB_NOT_VIEWABLE;