mirror of
https://github.com/swaywm/sway.git
synced 2024-12-30 17:06:40 +01:00
Focus ws inactive node with focus_follows_mouse
This commit is contained in:
parent
bbfe13a248
commit
a3332c70bf
1 changed files with 1 additions and 1 deletions
|
@ -362,7 +362,7 @@ void cursor_send_pointer_motion(struct sway_cursor *cursor, uint32_t time_msec,
|
||||||
struct sway_output *focused_output = node_get_output(focus);
|
struct sway_output *focused_output = node_get_output(focus);
|
||||||
struct sway_output *output = node_get_output(node);
|
struct sway_output *output = node_get_output(node);
|
||||||
if (output != focused_output) {
|
if (output != focused_output) {
|
||||||
seat_set_focus(seat, node);
|
seat_set_focus(seat, seat_get_focus_inactive(seat, node));
|
||||||
}
|
}
|
||||||
} else if (node->type == N_CONTAINER && node->sway_container->view) {
|
} else if (node->type == N_CONTAINER && node->sway_container->view) {
|
||||||
// Focus node if the following are true:
|
// Focus node if the following are true:
|
||||||
|
|
Loading…
Reference in a new issue