diff options
author | taiyu <taiyu.len@gmail.com> | 2015-08-19 13:27:06 -0700 |
---|---|---|
committer | taiyu <taiyu.len@gmail.com> | 2015-08-19 13:27:06 -0700 |
commit | 269d6ba4ea9d317b4dfae640acce4d5ff142ef84 (patch) | |
tree | 879d4a6e2b8a2502b90f0a93fe284bc2d1b890fe | |
parent | 6cc29ebbf53503a2ea72545fcdd495f5c1a89dfc (diff) |
fixed
-rw-r--r-- | sway/handlers.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/handlers.c b/sway/handlers.c index 75adf7dd..344edd07 100644 --- a/sway/handlers.c +++ b/sway/handlers.c @@ -319,7 +319,7 @@ static bool handle_key(wlc_handle view, uint32_t time, const struct wlc_modifier sway_log(L_DEBUG, "modifier %x: state %d: key %d, sym: %d", modifiers->mods, state, key, sym); - if ((modifiers->mods & config->floating_mod) && (dragging || resizing)) { + if (state == WLC_KEY_STATE_PRESSED && (dragging || resizing)) { reset_floating(get_focused_view(&root_container)); } |