aboutsummaryrefslogtreecommitdiff
path: root/sway/input
diff options
context:
space:
mode:
authorAntonin Décimo <antonin.decimo@gmail.com>2019-08-10 17:03:20 +0200
committerDrew DeVault <sir@cmpwn.com>2019-08-12 09:42:11 +0900
commit813e1209795f7016fd1223c5ce96b2185eed5a9a (patch)
tree892eeea5d2ae14f4a18e6dc74fdc0703bb124e4b /sway/input
parent3af52d86f73986e5459444509b53302d400c84b6 (diff)
downloadsway-813e1209795f7016fd1223c5ce96b2185eed5a9a.tar.xz
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,
if (cont && is_floating_or_child && !is_fullscreen_or_child &&
state == WLR_BUTTON_PRESSED) {
uint32_t btn_move = config->floating_mod_inverse ? BTN_RIGHT : BTN_LEFT;
- if (button == btn_move && state == WLR_BUTTON_PRESSED &&
- (mod_pressed || on_titlebar)) {
+ if (button == btn_move && (mod_pressed || on_titlebar)) {
while (cont->parent) {
cont = cont->parent;
}