aboutsummaryrefslogtreecommitdiff
path: root/sway
diff options
context:
space:
mode:
authorIvan Chebykin <ivan@chebykin.org>2018-05-25 16:51:03 +0300
committerIvan Chebykin <ivan@chebykin.org>2018-05-25 16:54:43 +0300
commitf85d3e15ba058daf5b7325ab51a8e5ccca18e8d4 (patch)
tree6e63c5742b6600b261510652e42eb9b0dd967cae /sway
parente19fe56e2f6bd0bf6cc9c8d608941116ebd06c49 (diff)
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,
bool do_mouse_focus = true;
struct sway_container *p = c->parent;
struct sway_container *first_tabbed_parent = c->parent;
- while(p) {
- if(p->layout == L_TABBED || p->layout == L_STACKED) {
+ while (p) {
+ if (p->layout == L_TABBED || p->layout == L_STACKED) {
do_mouse_focus = false;
first_tabbed_parent = p;
}
p = p->parent;
}
- if(!do_mouse_focus) {
+ if (!do_mouse_focus) {
struct sway_container *next_focus = seat_get_focus_inactive(
cursor->seat, first_tabbed_parent);
- if(next_focus) {
+ if (next_focus) {
seat_set_focus_warp(cursor->seat, next_focus, false);
}
} else {