aboutsummaryrefslogtreecommitdiffstats
path: root/sway/input/seatop_default.c
diff options
context:
space:
mode:
authorLibravatar Antonin Décimo <antonin.decimo@gmail.com>2019-08-10 17:03:20 +0200
committerLibravatar Drew DeVault <sir@cmpwn.com>2019-08-12 09:42:11 +0900
commit813e1209795f7016fd1223c5ce96b2185eed5a9a (patch)
tree892eeea5d2ae14f4a18e6dc74fdc0703bb124e4b /sway/input/seatop_default.c
parentFix memory leaks (diff)
downloadsway-813e1209795f7016fd1223c5ce96b2185eed5a9a.tar.gz
sway-813e1209795f7016fd1223c5ce96b2185eed5a9a.tar.zst
sway-813e1209795f7016fd1223c5ce96b2185eed5a9a.zip
Remove redundant checks
Diffstat (limited to 'sway/input/seatop_default.c')
-rw-r--r--sway/input/seatop_default.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sway/input/seatop_default.c b/sway/input/seatop_default.c
index e3726dd1..11382276 100644
--- a/sway/input/seatop_default.c
+++ b/sway/input/seatop_default.c
@@ -334,8 +334,7 @@ static void handle_button(struct sway_seat *seat, uint32_t time_msec,
334 if (cont && is_floating_or_child && !is_fullscreen_or_child && 334 if (cont && is_floating_or_child && !is_fullscreen_or_child &&
335 state == WLR_BUTTON_PRESSED) { 335 state == WLR_BUTTON_PRESSED) {
336 uint32_t btn_move = config->floating_mod_inverse ? BTN_RIGHT : BTN_LEFT; 336 uint32_t btn_move = config->floating_mod_inverse ? BTN_RIGHT : BTN_LEFT;
337 if (button == btn_move && state == WLR_BUTTON_PRESSED && 337 if (button == btn_move && (mod_pressed || on_titlebar)) {
338 (mod_pressed || on_titlebar)) {
339 while (cont->parent) { 338 while (cont->parent) {
340 cont = cont->parent; 339 cont = cont->parent;
341 } 340 }