aboutsummaryrefslogtreecommitdiff
path: root/render.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-11-22 20:56:13 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-11-22 21:00:26 +0000
commit9d24e68e6298f4ca2968c2950c316b72a9ddb03c (patch)
tree97631930a8ecd8bc122987f9b1efb8a4409b9d70 /render.c
parentselection: text_to_clipboard: assert the clipboard serial is not 0 (diff)
input: workaround buggy Sway sending bad input events
Sway 1.2 has been seen sending keyboard_key() events without first sending a keyboard_enter() event. This can be triggered by: 1. start a foot terminal 2. unfocus it (move focus to another window) 3. switch to a vt 4. switch back to sway 5. focus the foot terminal At this point, Sway will *not* send the keyboard_enter() event, but instead send a keyboard_key() event. (furthermore, if you now unfocus the window again, sway will send a keyboard_leave() event, still without having sent a keyboard_enter() event). Sway has _also_ been seen crashing in wl_pointer_motion(). Though this was in a build without proper debug information, everything points to a similar issue - i.e. sway is sending a motion event without first having sent an enter event. Workaround this by detecting this and logging a warning the first time it happens. The event is then ignored.
Diffstat (limited to 'render.c')
0 files changed, 0 insertions, 0 deletions