diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2019-02-03 20:15:21 +0100 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2019-02-03 20:15:21 +0100 |
| commit | e27c7319c5ff2f59acdebef3a7e0995ae5e05f3a (patch) | |
| tree | 30972bfd6f93afc9ac339b3ae89c1aedbe509c11 | |
| parent | 2fb8376a564e44555d504c024678a2a0c478b065 (diff) | |
| parent | 8b26c401d57186828e29f134d6566f92c4104261 (diff) | |
Merge pull request #3562 from vilhalmer/focus_follows_mouse-workspace-last-inactive
Focus workspace 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 01aae79d..1bf548db 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, struct sway_output *focused_output = node_get_output(focus); struct sway_output *output = node_get_output(node); 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) { // Focus node if the following are true: |
