summaryrefslogtreecommitdiff
path: root/src/wayland/meta-wayland-keyboard.h
diff options
context:
space:
mode:
authorRui Matos <tiagomatos@gmail.com>2014-10-07 18:51:19 +0200
committerRui Matos <tiagomatos@gmail.com>2014-10-08 15:26:28 +0200
commitc39f18c2d438efe3a866767c9546a6140dd5aaad (patch)
tree7c421b4a880d484ab75f1edf0763080c59b869fa /src/wayland/meta-wayland-keyboard.h
parent33acb5fea07c83236f254456d11d34e2c7671719 (diff)
downloadmutter-c39f18c2d438efe3a866767c9546a6140dd5aaad.tar.gz
wayland-keyboard: Don't send pressed keys on enter
We never want to send pressed keys to wayland clients on enter. The protocol says that we should send them, presumably so that clients can trigger their own key repeat routine in case they are given focus and a key is physically pressed. Unfortunately this causes some clients, in particular Xwayland, to register key events that they really shouldn't handle, e.g. on an Alt+Tab keybinding, where Alt is released before Tab, clients would see Tab being pressed on enter followed by a key release event for Tab, meaning that Tab would be processed by the client when it really shouldn't. Since the use case for the pressed keys array on enter seems weak to us, we'll just fake that there are no pressed keys instead which should be spec compliant even if it might not be true. https://bugzilla.gnome.org/show_bug.cgi?id=727178
Diffstat (limited to 'src/wayland/meta-wayland-keyboard.h')
-rw-r--r--src/wayland/meta-wayland-keyboard.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/wayland/meta-wayland-keyboard.h b/src/wayland/meta-wayland-keyboard.h
index 33b9e2ad2..799b5ac27 100644
--- a/src/wayland/meta-wayland-keyboard.h
+++ b/src/wayland/meta-wayland-keyboard.h
@@ -69,8 +69,6 @@ struct _MetaWaylandKeyboard
struct wl_listener focus_surface_listener;
uint32_t focus_serial;
- struct wl_array pressed_keys;
-
MetaWaylandXkbInfo xkb_info;
GSettings *settings;