swayfx/include/sway/input
Tudor Brindus 5d13f647f9 input/tablet: add seatop_down entry for tablet input
Currently, when tablet input exits a window during an implicit grab, it
passes focus to another window.

For instance, this is problematic when trying to drag a scrollbar, and
exiting the window — the scrollbar motion stops. Additionally,
without `focus_follows_mouse no`, the tablet passes focus to whatever
surface it goes over regardless of if there is an active implicit.

If the tablet is over a surface that does not bind tablet handlers, sway
will fall back to pointer emulation, and all of this works fine. It
probably should have consistent behavior between emulated and
not-emulated input, though.

This commit adds a condition for entering seatop_down when a tablet's
tool tip goes down, and exiting when it goes up. Since events won't be
routed through seatop_default, this prevents windows losing focus during
implicit grabs.

Closes #5302.
2020-05-25 10:01:00 +02:00
..
cursor.h input/pointer: only warp cursor when the confine region has changed 2020-05-21 10:45:08 +02:00
input-manager.h input: Mark virtual devices as such 2020-04-14 12:07:24 +02:00
keyboard.h treewide: fix typos 2020-02-18 21:53:57 +01:00
libinput.h ipc: add input::libinput_config event 2019-07-23 20:45:46 +03:00
seat.h input/tablet: add seatop_down entry for tablet input 2020-05-25 10:01:00 +02:00
switch.h cmd_bindswitch: add option to execute on reload 2019-07-09 10:00:57 +03:00
tablet.h input: Add support for tablet protocol. 2019-09-25 23:10:33 -04:00
text_input.h im: make text-input listeners per text-input 2020-04-04 11:42:04 +02:00