summaryrefslogtreecommitdiff
path: root/src/wayland/meta-wayland-keyboard.c
diff options
context:
space:
mode:
authorJonas Ådahl <jadahl@gmail.com>2016-09-21 12:00:39 +0800
committerJonas Ådahl <jadahl@gmail.com>2016-10-11 22:51:54 +0800
commit133bbdfefab8c8247313d66036d98f36a0a8fed9 (patch)
tree7f43345a1306e2501cd17892402a2cebdcb150c0 /src/wayland/meta-wayland-keyboard.c
parenta8c3470cf276419d506645c3acef182c93fa38c6 (diff)
downloadmutter-133bbdfefab8c8247313d66036d98f36a0a8fed9.tar.gz
wayland/keyboard: Check keyboard presence at set focus call site
Make the caller of focus setting and grab starting check whether there is a keyboard to update the focus state or start grabbing. It makes it more obvious what to expect, as the call would be a no-op in when no keyboard is present. https://bugzilla.gnome.org/show_bug.cgi?id=771646
Diffstat (limited to 'src/wayland/meta-wayland-keyboard.c')
-rw-r--r--src/wayland/meta-wayland-keyboard.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/wayland/meta-wayland-keyboard.c b/src/wayland/meta-wayland-keyboard.c
index 56e9576c1..4998cea4d 100644
--- a/src/wayland/meta-wayland-keyboard.c
+++ b/src/wayland/meta-wayland-keyboard.c
@@ -825,10 +825,6 @@ meta_wayland_keyboard_set_focus (MetaWaylandKeyboard *keyboard,
MetaWaylandSurface *surface)
{
MetaWaylandInputDevice *input_device = META_WAYLAND_INPUT_DEVICE (keyboard);
- MetaWaylandSeat *seat = meta_wayland_input_device_get_seat (input_device);
-
- if (!meta_wayland_seat_has_keyboard (seat))
- return;
if (keyboard->focus_surface == surface)
return;