mirror of
https://github.com/swaywm/sway.git
synced 2026-02-26 01:40:32 -05:00
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:
parent
2bd561d2b7
commit
416bb7a214
3 changed files with 17 additions and 9 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue