xserver-multidpi/hw/xwayland
Olivier Fourdan 170c959785 xwayland: avoid race condition on new keymap
When the Wayland compositor notifies of a new keymap, for the first X11
client using the keyboard, the last slave keyboard used might still not
be set (i.e. “lastSlave” is still NULL).

As a result, the new keymap is not applied, and the first X11 window
will have the wrong keymap set initially.

Apply the new keymap to the master keyboard as long as there's one.

Bugzilla: https://bugzilla.gnome.org/show_bug.cgi?id=791383
Signed-off-by: Olivier Fourdan <ofourdan@redhat.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-12-19 10:30:42 +10:00
..
.gitignore xwayland: Bind pointer constraints global 2016-10-05 13:50:46 -04:00
drm.xml wayland: Sync drm.xml with Mesa 2017-07-05 10:13:04 -04:00
Makefile.am xwayland: Add grab protocol support 2017-08-01 10:56:42 +01:00
meson.build meson: Fix xwayland build since xwayland-keyboard-grab. 2017-08-02 09:39:04 +01:00
xwayland-cursor.c xwayland: Fix non-argb cursor conversion 2017-12-06 10:15:57 -05:00
xwayland-cvt.c xwayland: Add hack for FWXGA resolution #99574 2017-02-08 12:32:16 -05:00
xwayland-glamor-xv.c xwayland: use the lowercase xnf.*alloc API 2017-09-06 08:56:39 +10:00
xwayland-glamor.c xwayland: Stop printing the EGL version 2017-11-07 15:57:54 -05:00
xwayland-input.c xwayland: avoid race condition on new keymap 2017-12-19 10:30:42 +10:00
xwayland-output.c xwayland: Update root window size when desktop size changes 2017-06-07 14:45:34 +10:00
xwayland-shm.c xserver: Check the right HAVE_*_CONFIG_H. 2017-03-23 13:17:39 -04:00
xwayland-vidmode.c xwayland: Pretend we support viewport in vidmode 2016-03-28 14:10:59 -04:00
xwayland.c xwayland: Give up “cleanly“ on Wayland socket errors 2017-12-13 10:56:10 -05:00
xwayland.h xwayland: Keep separate variables for pointer and tablet foci 2017-12-06 11:00:50 -05:00