diff options
author | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-06-04 11:31:25 +1000 |
---|---|---|
committer | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-06-04 11:31:25 +1000 |
commit | bcdb676abb34de49c57a11059658427f675ccec4 (patch) | |
tree | d604a6b22f195ab4b7f806c7a7fa02381f359b49 | |
parent | 9253278328524e4f483a66aa54ed11fd8538ace8 (diff) | |
download | sway-bcdb676abb34de49c57a11059658427f675ccec4.tar.xz |
Don't set focus to NULL when clicking a surface which has no container
-rw-r--r-- | sway/input/cursor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/input/cursor.c b/sway/input/cursor.c index 16e5427b..d6e17ae1 100644 --- a/sway/input/cursor.c +++ b/sway/input/cursor.c @@ -264,7 +264,7 @@ void dispatch_cursor_button(struct sway_cursor *cursor, if (new_ws != old_ws) { seat_set_focus(cursor->seat, cont); } - } else { + } else if (cont) { seat_set_focus(cursor->seat, cont); } |