aboutsummaryrefslogtreecommitdiff
path: root/sway
diff options
context:
space:
mode:
Diffstat (limited to 'sway')
-rw-r--r--sway/handlers.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sway/handlers.c b/sway/handlers.c
index aa336e8d..69846e45 100644
--- a/sway/handlers.c
+++ b/sway/handlers.c
@@ -430,8 +430,10 @@ static bool handle_pointer_button(wlc_handle view, uint32_t time, const struct w
return EVENT_PASSTHROUGH;
}
- // set pointer mode
- pointer_mode_set(button, !(modifiers->mods ^ config->floating_mod));
+ // set pointer mode only if floating mod has been set
+ if(config->floating_mod) {
+ pointer_mode_set(button, !(modifiers->mods ^ config->floating_mod));
+ }
// Return if mode has been set
if (pointer_state.mode) {