diff options
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) { | |||
293 | case M_TILING | M_DRAGGING: | 293 | case M_TILING | M_DRAGGING: |
294 | // swap current view under pointer with dragged view | 294 | // swap current view under pointer with dragged view |
295 | if (pointer_state.view && pointer_state.view->type == C_VIEW | 295 | if (pointer_state.view && pointer_state.view->type == C_VIEW |
296 | && pointer_state.view != initial.ptr) { | 296 | && pointer_state.view != initial.ptr |
297 | && !pointer_state.view->is_floating) { | ||
297 | // Swap them around | 298 | // Swap them around |
298 | swap_container(pointer_state.view, initial.ptr); | 299 | swap_container(pointer_state.view, initial.ptr); |
299 | update_geometry(pointer_state.view); | 300 | update_geometry(pointer_state.view); |