diff options
author | Ryan Dwyer <[email protected]> | 2018-10-10 16:58:32 +1000 |
---|---|---|
committer | Ryan Dwyer <[email protected]> | 2018-10-10 16:58:32 +1000 |
commit | 416bb7a214d6f140a4eb7a1b8b0581fc78d71cda (patch) | |
tree | 621dc8415c317cd83d596161e3145f99f5cc1370 /sway/input/cursor.c | |
parent | 2bd561d2b71830b1be5546112faf035383c8615e (diff) |
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.
Diffstat (limited to 'sway/input/cursor.c')
-rw-r--r-- | sway/input/cursor.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sway/input/cursor.c b/sway/input/cursor.c index 6d57c45f..5c446299 100644 --- a/sway/input/cursor.c +++ b/sway/input/cursor.c @@ -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; } |