diff options
-rw-r--r-- | sway/handlers.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sway/handlers.c b/sway/handlers.c index 7188092a..4f28dea9 100644 --- a/sway/handlers.c +++ b/sway/handlers.c | |||
@@ -425,6 +425,10 @@ static bool handle_pointer_motion(wlc_handle handle, uint32_t time, const struct | |||
425 | double dx = mouse_origin.x - prev_pos.x; | 425 | double dx = mouse_origin.x - prev_pos.x; |
426 | double dy = mouse_origin.y - prev_pos.y; | 426 | double dy = mouse_origin.y - prev_pos.y; |
427 | 427 | ||
428 | if (view != pointer_state.tiling.init_view) { | ||
429 | valid = false; | ||
430 | } | ||
431 | |||
428 | if ((dx < 0 || mouse_origin.x < pointer_state.tiling.lock_pos.x) && pointer_state.lock.temp_left) { | 432 | if ((dx < 0 || mouse_origin.x < pointer_state.tiling.lock_pos.x) && pointer_state.lock.temp_left) { |
429 | changed_tiling = true; | 433 | changed_tiling = true; |
430 | valid = false; | 434 | valid = false; |