Skip to content

Commit 5848a45

Browse files
committed
wayland: abort compose when the keyboard leaves.
This indicates window focus change. Without this, focus change caused by alt-key combinations (ctrl+alt+arrow on many Linux configurations will switch virtual desktops) may incorrectly be interpreted as a key-compose.
1 parent 03bad79 commit 5848a45

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/cmd/devdraw/wayland.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -648,6 +648,7 @@ void wl_keyboard_leave(void *data, struct wl_keyboard *wl_keyboard,
648648
wl->repeat_rune = 0;
649649

650650
qunlock(&wayland_lock);
651+
gfx_abortcompose(c);
651652
}
652653

653654
void wl_keyboard_key(void *data, struct wl_keyboard *wl_keyboard,

0 commit comments

Comments
 (0)