diff options
author | taiyu <taiyu.len@gmail.com> | 2015-08-27 07:10:17 -0700 |
---|---|---|
committer | taiyu <taiyu.len@gmail.com> | 2015-08-27 07:10:17 -0700 |
commit | 08faffdd766c42d067716f58c01dfee8c277a747 (patch) | |
tree | ead63daec3406944603eebc2089ad83fdbd58e8b /sway/input_state.c | |
parent | 24f4b92ea214bd1755d92dc3a07efa2bce575112 (diff) |
dont swap floating containers
Diffstat (limited to 'sway/input_state.c')
-rw-r--r-- | sway/input_state.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sway/input_state.c b/sway/input_state.c index 0a7c073d..a7febc08 100644 --- a/sway/input_state.c +++ b/sway/input_state.c @@ -293,7 +293,8 @@ void pointer_mode_update(void) { case M_TILING | M_DRAGGING: // swap current view under pointer with dragged view if (pointer_state.view && pointer_state.view->type == C_VIEW - && pointer_state.view != initial.ptr) { + && pointer_state.view != initial.ptr + && !pointer_state.view->is_floating) { // Swap them around swap_container(pointer_state.view, initial.ptr); update_geometry(pointer_state.view); |