diff options
author | vilhalmer <vil@vil.lv> | 2019-02-03 12:12:40 -0500 |
---|---|---|
committer | vilhalmer <vil@vil.lv> | 2019-02-03 12:12:40 -0500 |
commit | a3332c70bf722bdae9fb357d909419c4a211a38e (patch) | |
tree | 32c7a3a9e31dc931274f732b204b4cada702c49b | |
parent | Merge pull request #3551 from c-edw/RevertDoubleFrees (diff) | |
download | sway-a3332c70bf722bdae9fb357d909419c4a211a38e.tar.gz sway-a3332c70bf722bdae9fb357d909419c4a211a38e.tar.zst sway-a3332c70bf722bdae9fb357d909419c4a211a38e.zip |
Focus ws inactive node with focus_follows_mouse
-rw-r--r-- | sway/input/cursor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/input/cursor.c b/sway/input/cursor.c index c38d8d3a..250100cc 100644 --- a/sway/input/cursor.c +++ b/sway/input/cursor.c | |||
@@ -362,7 +362,7 @@ void cursor_send_pointer_motion(struct sway_cursor *cursor, uint32_t time_msec, | |||
362 | struct sway_output *focused_output = node_get_output(focus); | 362 | struct sway_output *focused_output = node_get_output(focus); |
363 | struct sway_output *output = node_get_output(node); | 363 | struct sway_output *output = node_get_output(node); |
364 | if (output != focused_output) { | 364 | if (output != focused_output) { |
365 | seat_set_focus(seat, node); | 365 | seat_set_focus(seat, seat_get_focus_inactive(seat, node)); |
366 | } | 366 | } |
367 | } else if (node->type == N_CONTAINER && node->sway_container->view) { | 367 | } else if (node->type == N_CONTAINER && node->sway_container->view) { |
368 | // Focus node if the following are true: | 368 | // Focus node if the following are true: |