sway/sway
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
..
commands output_cmd_background: validate colors 2019-03-15 09:50:10 +02:00
config config/output: handle wildcard in get_output_config 2019-03-17 18:05:27 +02:00
desktop Remove debug tree 2019-03-18 11:29:19 -04:00
input Clean up focus follows mouse logic 2019-03-19 14:38:06 -06:00
tree Fix output config retrieval for new outputs 2019-03-16 10:40:46 -06:00
commands.c Fix quoting of commands passed to for_window 2019-03-15 14:52:38 -04:00
config.c add --i3 flag to hide_edge_borders 2019-02-24 15:26:37 -05:00
criteria.c criteria: change workspace to support regex 2019-03-12 20:52:09 -06:00
decoration.c Fix double free when unmapping any view 2018-11-15 15:22:09 +10:00
ipc-json.c get_deco_rect: fix floaters on tabbed/stacked ws 2019-03-11 21:31:47 -06:00
ipc-server.c ipc_has_event_listeners: fix inverted check of subscribed_events 2019-02-06 15:16:48 +01:00
main.c Remove debug tree 2019-03-18 11:29:19 -04:00
meson.build Remove debug tree 2019-03-18 11:29:19 -04:00
security.c Replace _XOPEN_SOURCE with _POSIX_C_SOURCE 2018-11-25 17:19:43 +01:00
server.c Set DISPLAY after initializing Xwayland 2019-03-04 21:16:00 +01:00
sway-bar.5.scd swaybar: add overlay mode (fix #1620) 2019-02-24 20:05:47 -05:00
sway-input.5.scd sway-input.5: document wildcard and identifier troubleshooting 2019-02-16 23:50:37 +01:00
sway-ipc.7.scd ipc: describe libinput device configuration 2019-03-07 08:41:19 -07:00
sway-output.5.scd Add output dpms to manpage 2019-02-27 16:33:03 -05:00
sway.1.scd Update language in sway.desktop & sway(1) 2019-03-10 15:09:52 -04:00
sway.5.scd Document the title_format command 2019-03-18 11:27:36 -04:00
swaynag.c Replace wlr_log with sway_log 2019-01-21 12:59:42 +01:00
xdg_decoration.c view: set xdg_decoration->view to NULL, check decoration destroy 2019-02-23 03:03:03 -05:00