aboutsummaryrefslogtreecommitdiff
path: root/sway
diff options
context:
space:
mode:
authorLuminarys <kizunanohikari@gmail.com>2015-08-19 11:23:27 -0500
committerLuminarys <kizunanohikari@gmail.com>2015-08-19 11:23:27 -0500
commit0b23962564a52dff8dd70488f33bc08eeb5aef03 (patch)
treeeb04c6efe3f375c61db27b762945426791606d38 /sway
parentdd8ff4a1505e914b6ab9b2de11a4a55f7a4bb61d (diff)
Resolved merge conflicts
Diffstat (limited to 'sway')
-rw-r--r--sway/handlers.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/sway/handlers.c b/sway/handlers.c
index 306c8abf..92d9b6af 100644
--- a/sway/handlers.c
+++ b/sway/handlers.c
@@ -26,13 +26,7 @@ static bool resizing = false;
static bool lock_left, lock_right, lock_top, lock_bottom = false;
static bool floating_mod_pressed(void) {
- return true;
- int i = 0;
- while (i < keys_pressed_length) {
- if (keys_pressed[i++] == config->floating_mod)
- return true;
- }
- return false;
+ return key_modifiers & config->floating_mod;
}
static bool pointer_test(swayc_t *view, void *_origin) {