Don't set focus to NULL when clicking a surface which has no container

This commit is contained in:
Ryan Dwyer 2018-06-04 11:31:25 +10:00
parent 9253278328
commit bcdb676abb

View file

@ -264,7 +264,7 @@ void dispatch_cursor_button(struct sway_cursor *cursor,
if (new_ws != old_ws) { if (new_ws != old_ws) {
seat_set_focus(cursor->seat, cont); seat_set_focus(cursor->seat, cont);
} }
} else { } else if (cont) {
seat_set_focus(cursor->seat, cont); seat_set_focus(cursor->seat, cont);
} }