mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-04 07:15:29 -04:00
input: keyboard-leave: move comment to where it belongs
This commit is contained in:
parent
e9325b958f
commit
4be3c04999
1 changed files with 3 additions and 3 deletions
6
input.c
6
input.c
|
|
@ -152,14 +152,14 @@ keyboard_leave(void *data, struct wl_keyboard *wl_keyboard, uint32_t serial,
|
||||||
|
|
||||||
stop_repeater(wayl, -1);
|
stop_repeater(wayl, -1);
|
||||||
if (old_focused != NULL) {
|
if (old_focused != NULL) {
|
||||||
|
term_kbd_focus_out(old_focused);
|
||||||
|
term_xcursor_update(old_focused);
|
||||||
|
} else {
|
||||||
/*
|
/*
|
||||||
* Sway bug - under certain conditions we get a
|
* Sway bug - under certain conditions we get a
|
||||||
* keyboard_leave() (and keyboard_key()) without first having
|
* keyboard_leave() (and keyboard_key()) without first having
|
||||||
* received a keyboard_enter()
|
* received a keyboard_enter()
|
||||||
*/
|
*/
|
||||||
term_kbd_focus_out(old_focused);
|
|
||||||
term_xcursor_update(old_focused);
|
|
||||||
} else {
|
|
||||||
LOG_WARN(
|
LOG_WARN(
|
||||||
"compositor sent keyboard_leave event without a keyboard_enter "
|
"compositor sent keyboard_leave event without a keyboard_enter "
|
||||||
"event: surface=%p", surface);
|
"event: surface=%p", surface);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue