Don't set focus to NULL when clicking a surface which has no container
This commit is contained in:
parent
9253278328
commit
bcdb676abb
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue