summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2019-02-03 12:12:40 -0500
committerFurkan Sahin <furkan-dev@proton.me>2019-02-03 12:12:40 -0500
commite28a0bc3db564df0e1060ce8088727136e83957a (patch)
tree2fa068fde3e0fe427742543b870dff700e411f6e
parent465bccf0336996dc8d53dda21f7ede41c99fd0ef (diff)
Focus ws inactive node with focus_follows_mouse
-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: