diff options
-rw-r--r-- | sway/input/cursor.c | 8 |
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 { |