summaryrefslogtreecommitdiffstats
path: root/sway/handlers.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/handlers.c')
-rw-r--r--sway/handlers.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sway/handlers.c b/sway/handlers.c
index 93b124bd..2223a98c 100644
--- a/sway/handlers.c
+++ b/sway/handlers.c
@@ -424,8 +424,7 @@ static bool handle_pointer_button(wlc_handle view, uint32_t time, const struct w
424 } 424 }
425 425
426 // set pointer mode 426 // set pointer mode
427 pointer_mode_set(button, 427 pointer_mode_set(button, !(modifiers->mods ^ config->floating_mod));
428 (modifiers->mods & config->floating_mod) == config->floating_mod);
429 428
430 // Return if mode has been set 429 // Return if mode has been set
431 if (pointer_state.mode) { 430 if (pointer_state.mode) {