aboutsummaryrefslogtreecommitdiff
path: root/sway/input/cursor.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2019-02-03 20:15:21 +0100
committerGitHub <noreply@github.com>2019-02-03 20:15:21 +0100
commita1a99421a1150609bc8a54a2dd51dc9ec780d326 (patch)
tree30972bfd6f93afc9ac339b3ae89c1aedbe509c11 /sway/input/cursor.c
parent4ef5b49906700e25383a32cde0b16f1df2de250a (diff)
parenta3332c70bf722bdae9fb357d909419c4a211a38e (diff)
Merge pull request #3562 from vilhalmer/focus_follows_mouse-workspace-last-inactive
Focus workspace inactive node with focus_follows_mouse
Diffstat (limited to 'sway/input/cursor.c')
-rw-r--r--sway/input/cursor.c2
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: