From d11533595133685d15fd6cdbf9f1611be5e8e2f3 Mon Sep 17 00:00:00 2001 From: taiyu Date: Wed, 26 Aug 2015 21:25:57 -0700 Subject: move workspace from dead output to other output --- sway/handlers.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sway/handlers.c') 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) { -- cgit v1.2.3