xserver-multidpi/hw/xwayland
Rui Matos 589f42e983 xwayland: Process queued events before making wayland mods effective
Since xwayland's initial commit we have had a check to not process
wayland modifier events while one of our surfaces has keyboard focus
since the normal xkb event processing keeps our internal modifier
state up to date and if we use the modifiers we get from the
compositor we mess up that state.

This was slightly changed in commit
10e9116b3f to allow the xkb group to be
set from the wayland event while we have focus in case the compositor
triggers a group switch.

There's a better solution to the original problem though. Processing
queued events before overriding the xkb state with the compositor's
allows those events to be sent properly modified to X clients while
any further events will be modified with the wayland modifiers as
intended.

This allows us to fully take in the wayland modifiers, including
depressed ones, which fixes an issue where we wouldn't be aware of
already pressed modifiers on enter.

Signed-off-by: Rui Matos <tiagomatos@gmail.com>
Tested-by: Olivier Fourdan <ofourdan@redhat.com>
Reviewed-by: Daniel Stone <daniels@collabora.com>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2016-09-06 13:05:42 +10:00
..
.gitignore Xwayland DDX 2014-04-03 15:19:22 -07:00
drm.xml xwayland: Add glamor and DRI3 support 2014-06-24 15:09:55 -07:00
Makefile.am xwayland: Fix relinking when dix changes 2016-08-16 15:56:18 -04:00
xwayland-cursor.c xwayland: Plug memleak in frame callbacks 2016-08-15 12:49:36 -04:00
xwayland-cvt.c xwayland: do not include frequency in mode name 2016-03-28 14:09:09 -04:00
xwayland-glamor-xv.c xwayland: Fix compiler warning in GLAMOR Xv 2016-04-15 16:22:16 -04:00
xwayland-glamor.c xwayland: Fix whitespace errors 2016-06-20 15:40:07 +10:00
xwayland-input.c xwayland: Process queued events before making wayland mods effective 2016-09-06 13:05:42 +10:00
xwayland-output.c xwayland: Avoid double free of RRCrtc and RROutput 2016-08-15 14:20:54 -04:00
xwayland-shm.c xwayland-shm: fortify fallocate against EINTR 2016-04-25 15:29:40 -04:00
xwayland-vidmode.c xwayland: Pretend we support viewport in vidmode 2016-03-28 14:10:59 -04:00
xwayland.c wayland: Emulate crossing for native window 2016-08-19 11:04:25 +10:00
xwayland.h wayland: Emulate crossing for native window 2016-08-19 11:04:25 +10:00