summaryrefslogtreecommitdiffstats
path: root/sway
diff options
context:
space:
mode:
authorLibravatar Ivan Chebykin <ivan@chebykin.org>2018-05-25 16:51:03 +0300
committerLibravatar Ivan Chebykin <ivan@chebykin.org>2018-05-25 16:54:43 +0300
commitf85d3e15ba058daf5b7325ab51a8e5ccca18e8d4 (patch)
tree6e63c5742b6600b261510652e42eb9b0dd967cae /sway
parentFocus inactive container instead of checking cursor position (diff)
downloadsway-f85d3e15ba058daf5b7325ab51a8e5ccca18e8d4.tar.gz
sway-f85d3e15ba058daf5b7325ab51a8e5ccca18e8d4.tar.zst
sway-f85d3e15ba058daf5b7325ab51a8e5ccca18e8d4.zip
Fixed styling issues
Diffstat (limited to 'sway')
-rw-r--r--sway/input/cursor.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sway/input/cursor.c b/sway/input/cursor.c
index 36247416..bd23af6f 100644
--- a/sway/input/cursor.c
+++ b/sway/input/cursor.c
@@ -169,17 +169,17 @@ void cursor_send_pointer_motion(struct sway_cursor *cursor, uint32_t time_msec,
169 bool do_mouse_focus = true; 169 bool do_mouse_focus = true;
170 struct sway_container *p = c->parent; 170 struct sway_container *p = c->parent;
171 struct sway_container *first_tabbed_parent = c->parent; 171 struct sway_container *first_tabbed_parent = c->parent;
172 while(p) { 172 while (p) {
173 if(p->layout == L_TABBED || p->layout == L_STACKED) { 173 if (p->layout == L_TABBED || p->layout == L_STACKED) {
174 do_mouse_focus = false; 174 do_mouse_focus = false;
175 first_tabbed_parent = p; 175 first_tabbed_parent = p;
176 } 176 }
177 p = p->parent; 177 p = p->parent;
178 } 178 }
179 if(!do_mouse_focus) { 179 if (!do_mouse_focus) {
180 struct sway_container *next_focus = seat_get_focus_inactive( 180 struct sway_container *next_focus = seat_get_focus_inactive(
181 cursor->seat, first_tabbed_parent); 181 cursor->seat, first_tabbed_parent);
182 if(next_focus) { 182 if (next_focus) {
183 seat_set_focus_warp(cursor->seat, next_focus, false); 183 seat_set_focus_warp(cursor->seat, next_focus, false);
184 } 184 }
185 } else { 185 } else {