summaryrefslogtreecommitdiff
path: root/sway/handlers.c
diff options
context:
space:
mode:
authorLuminarys <[email protected]>2015-08-18 18:03:11 -0500
committerLuminarys <[email protected]>2015-08-18 18:03:23 -0500
commit7137be9a3fac4780c356d3f7a5d33c4235314a57 (patch)
treed4a19630fea612dd07da5aeffba0c0d6974a5335 /sway/handlers.c
parent3e950c2b1c77fd3bd6a029eea6d50fbbe124b581 (diff)
Fixes to make floating windows work better
Diffstat (limited to 'sway/handlers.c')
-rw-r--r--sway/handlers.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sway/handlers.c b/sway/handlers.c
index d0915fe5..99d57529 100644
--- a/sway/handlers.c
+++ b/sway/handlers.c
@@ -345,10 +345,10 @@ static bool handle_pointer_motion(wlc_handle handle, uint32_t time, const struct
int dx = mouse_origin.x - prev_pos.x;
int dy = mouse_origin.y - prev_pos.y;
sway_log(L_DEBUG, "Moving from px: %d to cx: %d and from py: %d to cy: %d", prev_pos.x, mouse_origin.x, prev_pos.y, mouse_origin.y);
- sway_log(L_DEBUG, "Moving: dx: %d, dy: %d", dx, dy);
view->x += dx;
view->y += dy;
+ changed_floating = true;
break;
}
}
@@ -360,7 +360,6 @@ static bool handle_pointer_motion(wlc_handle handle, uint32_t time, const struct
int dx = mouse_origin.x - prev_pos.x;
int dy = mouse_origin.y - prev_pos.y;
sway_log(L_DEBUG, "Moving from px: %d to cx: %d and from py: %d to cy: %d", prev_pos.x, mouse_origin.x, prev_pos.y, mouse_origin.y);
- sway_log(L_INFO, "Moving: dx: %d, dy: %d", dx, dy);
// Move and resize the view based on the dx/dy and mouse position
int midway_x = view->x + view->width/2;