diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-04-06 09:32:38 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2018-04-06 09:32:51 -0400 |
commit | cca420b2f83da0af97de82677b7027710a0fd8d7 (patch) | |
tree | 16e0d8845cf14fb40a910322d039464c16bb8365 | |
parent | Fix deletion of still-visible workspaces on unfocus (diff) | |
download | sway-cca420b2f83da0af97de82677b7027710a0fd8d7.tar.gz sway-cca420b2f83da0af97de82677b7027710a0fd8d7.tar.zst sway-cca420b2f83da0af97de82677b7027710a0fd8d7.zip |
Fix focus_follows_mouse issues
-rw-r--r-- | sway/input/cursor.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/sway/input/cursor.c b/sway/input/cursor.c index b83bc9fe..6db615b1 100644 --- a/sway/input/cursor.c +++ b/sway/input/cursor.c | |||
@@ -116,7 +116,16 @@ static struct sway_container *container_at_cursor(struct sway_cursor *cursor, | |||
116 | return ws; | 116 | return ws; |
117 | } | 117 | } |
118 | 118 | ||
119 | return NULL; | 119 | c = seat_get_focus_inactive(cursor->seat, output->swayc); |
120 | if (c) { | ||
121 | return c; | ||
122 | } | ||
123 | if (!c && output->swayc->children->length) { | ||
124 | c = output->swayc->children->items[0]; | ||
125 | return c; | ||
126 | } | ||
127 | |||
128 | return output->swayc; | ||
120 | } | 129 | } |
121 | 130 | ||
122 | static void cursor_send_pointer_motion(struct sway_cursor *cursor, | 131 | static void cursor_send_pointer_motion(struct sway_cursor *cursor, |