diff --git a/gdk/wayland/gdkdevice-wayland.c b/gdk/wayland/gdkdevice-wayland.c index bb48f5d5f6..9ddf661fe9 100644 --- a/gdk/wayland/gdkdevice-wayland.c +++ b/gdk/wayland/gdkdevice-wayland.c @@ -209,11 +209,8 @@ gdk_device_core_grab (GdkDevice *device, GdkCursor *cursor, guint32 time_) { - GdkDisplay *display; GdkWaylandDevice *wayland_device = GDK_DEVICE_CORE (device)->device; - display = gdk_device_get_display (device); - if (gdk_device_get_source (device) == GDK_SOURCE_KEYBOARD) { /* Device is a keyboard */