reset keyboard input state when focus is lost
litoj opened this issue · 0 comments
litoj commented
I often use swayimg to find an image I want to work with in a file manager, so I use Alt+e = exec xterm ranger --selectfile="%"'
in my config. However, the new window launches (and takes focus) quicker than I unpress the keybinding. Because swayimg didn't receive the respective key unpress event it thinks I'm still pressing the key combo, therefore launching more and more new windows.
The cleanest solution is to consider all keys unpressed / all input reset when focus is lost (wl_keyboard.leave
/wl_pointer.leave
events).