Fix floating click events

* Set focus to a floating container when clicking its title bar.
* Raise floating when user clicks title bar or decorations (in the
seat_begin functions).
* In container_at, it only returned a floating container if the user had
clicked the surface. This makes it use floating_container_at instead.
This commit is contained in:
Ryan Dwyer 2018-10-10 16:58:32 +10:00
parent 2bd561d2b7
commit 416bb7a214
3 changed files with 17 additions and 9 deletions

View file

@ -877,6 +877,7 @@ void dispatch_cursor_button(struct sway_cursor *cursor,
while (cont->parent) {
cont = cont->parent;
}
seat_set_focus_container(seat, cont);
seat_begin_move_floating(seat, cont, button);
return;
}