aboutsummaryrefslogtreecommitdiffstats
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,
339 state == WLR_BUTTON_PRESSED) { 339 state == WLR_BUTTON_PRESSED) {
340 uint32_t btn_move = config->floating_mod_inverse ? BTN_RIGHT : BTN_LEFT; 340 uint32_t btn_move = config->floating_mod_inverse ? BTN_RIGHT : BTN_LEFT;
341 if (button == btn_move && (mod_pressed || on_titlebar)) { 341 if (button == btn_move && (mod_pressed || on_titlebar)) {
342 seat_set_focus_container(seat,
343 seat_get_focus_inactive_view(seat, &cont->node));
342 while (cont->parent) { 344 while (cont->parent) {
343 cont = cont->parent; 345 cont = cont->parent;
344 } 346 }
345 seat_set_focus_container(seat, cont);
346 seatop_begin_move_floating(seat, cont); 347 seatop_begin_move_floating(seat, cont);
347 return; 348 return;
348 } 349 }