summaryrefslogtreecommitdiffstats
path: root/sway/input
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-20 13:27:52 +0900
commitd9c09c483ad6a03f66db231556a68a35f3654956 (patch)
tree892eeea5d2ae14f4a18e6dc74fdc0703bb124e4b /sway/input
parentFix memory leaks (diff)
downloadsway-d9c09c483ad6a03f66db231556a68a35f3654956.tar.gz
sway-d9c09c483ad6a03f66db231556a68a35f3654956.tar.zst
sway-d9c09c483ad6a03f66db231556a68a35f3654956.zip
Remove redundant checks
Diffstat (limited to 'sway/input')
-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 }