aboutsummaryrefslogtreecommitdiff
path: root/sway
diff options
context:
space:
mode:
authorLuminarys <kizunanohikari@gmail.com>2015-08-21 15:36:37 -0500
committerLuminarys <kizunanohikari@gmail.com>2015-08-21 15:36:37 -0500
commitf7a6dd7ce95ff5c5cefcd524d4261f78a887f0a9 (patch)
tree2c848d1cd7a0902e8acefa64ed94e7d91220c5bf /sway
parentad72abb58f32673a942c9c607a300e8dba0e9f22 (diff)
Minor fix to resizing with mouse
Diffstat (limited to 'sway')
-rw-r--r--sway/handlers.c4
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
double dx = mouse_origin.x - prev_pos.x;
double dy = mouse_origin.y - prev_pos.y;
+ if (view != pointer_state.tiling.init_view) {
+ valid = false;
+ }
+
if ((dx < 0 || mouse_origin.x < pointer_state.tiling.lock_pos.x) && pointer_state.lock.temp_left) {
changed_tiling = true;
valid = false;