mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-02 07:15:31 -04:00
input: don't update xcursor on keyboard enter/leave
I'm not sure why I added this in the first place... our cursor doesn't depend on keyboard focus. Furthermore, with CSDs, we may get keyboard enter events for the CSD surfaces, and these should definitely *not* update the xcursor as if it was inside the main surface.
This commit is contained in:
parent
43b07b122a
commit
e496d81f4d
1 changed files with 2 additions and 4 deletions
6
input.c
6
input.c
|
|
@ -96,7 +96,6 @@ keyboard_enter(void *data, struct wl_keyboard *wl_keyboard, uint32_t serial,
|
||||||
wayl->input_serial = serial;
|
wayl->input_serial = serial;
|
||||||
|
|
||||||
term_kbd_focus_in(wayl->kbd_focus);
|
term_kbd_focus_in(wayl->kbd_focus);
|
||||||
term_xcursor_update(wayl->kbd_focus);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool
|
static bool
|
||||||
|
|
@ -163,10 +162,9 @@ keyboard_leave(void *data, struct wl_keyboard *wl_keyboard, uint32_t serial,
|
||||||
wayl->kbd.meta = false;;
|
wayl->kbd.meta = false;;
|
||||||
xkb_compose_state_reset(wayl->kbd.xkb_compose_state);
|
xkb_compose_state_reset(wayl->kbd.xkb_compose_state);
|
||||||
|
|
||||||
if (old_focused != NULL) {
|
if (old_focused != NULL)
|
||||||
term_kbd_focus_out(old_focused);
|
term_kbd_focus_out(old_focused);
|
||||||
term_xcursor_update(old_focused);
|
else {
|
||||||
} 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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue