Skip to content

Multiple Xwayland key tracking fixes

David Edmundson requested to merge work/d_ed/xwayland_keys into master
xwayland: Send to xwayland even when no window is focused

In the codepath to keep xwayland notified of key presses we have to
check the focussed window is not already an xwayland client. To avoid a
null dereference a guard is added that the focussed window is not null,
however the current code incorrectly returns early intead of skipping
just the relevant check.

BUG: 478705

Add unit test for XWayland key tracking

Use correct key for key release events

When a key is pressed the key that should be used in the key event
changes depending on the xkb updated state for composed keys.

When a key is released the "currentKeySym" is not updated. i.e after
pressing alt then A, then releasing A, when we release alt our keyEvent
should have a key symbol of "alt" not still "A".

Merge request reports