floating mode_toggle

This commit is contained in:
taiyu 2015-08-19 13:02:29 -07:00
parent c29214f348
commit 48a983316c
2 changed files with 14 additions and 0 deletions

View file

@ -316,6 +316,9 @@ static bool handle_key(wlc_handle view, uint32_t time, const struct wlc_modifier
}
bool cmd_success = false;
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)) {
reset_floating(get_focused_view(&root_container));
}