aboutsummaryrefslogtreecommitdiff
path: root/sway/handlers.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2015-08-27 07:42:12 -0400
committerDrew DeVault <sir@cmpwn.com>2015-08-27 07:42:12 -0400
commit24f4b92ea214bd1755d92dc3a07efa2bce575112 (patch)
treeeb8890eb711a55a58e3855c6d9328e3b1dd09063 /sway/handlers.c
parentef31ee5cf6aabfdf4730ac64c8b004be238df1a8 (diff)
parentd11533595133685d15fd6cdbf9f1611be5e8e2f3 (diff)
Merge pull request #142 from taiyu-len/master
move workspace from dead output to other output
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
}
// set pointer mode
- pointer_mode_set(button,
- (modifiers->mods & config->floating_mod) == config->floating_mod);
+ pointer_mode_set(button, !(modifiers->mods ^ config->floating_mod));
// Return if mode has been set
if (pointer_state.mode) {