diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2019-11-22 21:28:41 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2019-11-22 21:28:41 +0000 |
| commit | 1a68a7cf0b6155417c3123593fccf78202106474 (patch) | |
| tree | 63e3c236ed5fa0da30260801f0e61d60cf6ef233 /selection.c | |
| parent | input: use xkb_keymap_key_repeats() to determine if we should start repeat timer (diff) | |
input: improve behavior when sway bugs out
When we receive a keyboard_key or pointer_motion event without first
having received a keyboard_enter or pointer_enter event (that being
the "sway bugs" part), we generally don't know _which_ terminal window
the event was intended for.
However, if we only have *one* window open (always the case for a
regular 'foot' process, or when there's a single footclient connected
to a foot server process), then obviously we can "guess" which window
the event was intended for... so do that.
Now, the only time the event is ignored is when we're a server process
with more than one window open (= more than one footclient connected).
Diffstat (limited to 'selection.c')
0 files changed, 0 insertions, 0 deletions
