aboutsummaryrefslogtreecommitdiff
path: root/sway/input/seatop_default.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/input/seatop_default.c')
-rw-r--r--sway/input/seatop_default.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sway/input/seatop_default.c b/sway/input/seatop_default.c
index 3768bc63..ffa43658 100644
--- a/sway/input/seatop_default.c
+++ b/sway/input/seatop_default.c
@@ -339,10 +339,11 @@ static void handle_button(struct sway_seat *seat, uint32_t time_msec,
state == WLR_BUTTON_PRESSED) {
uint32_t btn_move = config->floating_mod_inverse ? BTN_RIGHT : BTN_LEFT;
if (button == btn_move && (mod_pressed || on_titlebar)) {
+ seat_set_focus_container(seat,
+ seat_get_focus_inactive_view(seat, &cont->node));
while (cont->parent) {
cont = cont->parent;
}
- seat_set_focus_container(seat, cont);
seatop_begin_move_floating(seat, cont);
return;
}