sway-patched-tray-menu-github/sway/input
Ryan Dwyer bfa20e65d8 Clean up focus follows mouse logic
Firstly, this fixes a recent regression where having
`focus_follows_mouse yes` and hovering an inactive tab caused it to gain
focus. The code was missing a view_is_visible check.

The code is handling the logic for both focus_follows_mouse yes and
focus_follows_mouse always, where the latter will apply when nudging the
mouse after a workspace switch. However, the view_is_visible check
didn't apply when using focus_follows_mouse always, so hovering a tab
with that configuration would cause is to focus. This was a bug. When
adding the view_is_visible check, it now applies to both yes and always.

Note that the comment about the split container was wrong. At this point
the hovered node cannot be a split container because it passed the
node_is_view check. The comment has been removed.

Lastly, the else condition is completely removed. This didn't appear to
have any practical use. Setting focus to the result of
seat_get_focus_inactive is very likely going to be a no op. There is a
slim chance that this will break something, and if so I'd like to find
out what so it can be properly documented in the code.
2019-03-19 14:38:06 -06:00
..
cursor.c Introduce default seatop 2019-03-17 10:02:04 -06:00
input-manager.c seat_cmd_cursor: do not create non-existing seat 2019-02-03 14:01:29 -05:00
keyboard.c Make raw keysyms take precedence over translated 2019-03-10 23:01:49 +01:00
seat.c Remove debug tree 2019-03-18 11:29:19 -04:00
seatop_default.c Clean up focus follows mouse logic 2019-03-19 14:38:06 -06:00
seatop_down.c Introduce default seatop 2019-03-17 10:02:04 -06:00
seatop_move_floating.c Introduce default seatop 2019-03-17 10:02:04 -06:00
seatop_move_tiling.c Introduce default seatop 2019-03-17 10:02:04 -06:00
seatop_resize_floating.c Introduce default seatop 2019-03-17 10:02:04 -06:00
seatop_resize_tiling.c Introduce default seatop 2019-03-17 10:02:04 -06:00