xwayland: don't allow clients to modify the keymap

Xwayland has no way to affect the keymap of the compositor. If clients
modify the keymap, it will stay out of sync with the compositor until
some unspecified time in the future when the compositor sends the keymap
again, which might be never, requiring Xwayland to be restarted.

Signed-off-by: Julian Orth <ju.orth@gmail.com>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1953>
This commit is contained in:
Julian Orth
2025-05-05 13:56:27 +02:00
committed by Olivier Fourdan
parent 88c5aea5d3
commit aaa8d5a955
4 changed files with 24 additions and 2 deletions

View File

@@ -632,6 +632,7 @@ typedef struct _DeviceIntRec {
struct _SyncCounter *idle_counter;
Bool ignoreXkbActionsBehaviors; /* TRUE if keys don't trigger behaviors and actions */
Bool hasDdxKeymap; /* TRUE if clients cannot modify the keymap */
} DeviceIntRec;
typedef struct {