commit ab43927a470f46271ae98faa4e1cfe3a936c6c9d
parent 7137be9a3fac4780c356d3f7a5d33c4235314a57
Author: Luminarys <kizunanohikari@gmail.com>
Date: Tue, 18 Aug 2015 18:04:46 -0500
Minor fixes that might be helpful later
Diffstat:
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/sway/handlers.c b/sway/handlers.c
@@ -371,24 +371,24 @@ static bool handle_pointer_motion(wlc_handle handle, uint32_t time, const struct
if (mouse_origin.x > midway_x) {
sway_log(L_INFO, "Downsizing view to the left");
view->width += dx;
- edge = WLC_RESIZE_EDGE_RIGHT;
+ edge += WLC_RESIZE_EDGE_RIGHT;
} else {
sway_log(L_INFO, "Upsizing view to the left");
view->x += dx;
view->width -= dx;
- edge = WLC_RESIZE_EDGE_LEFT;
+ edge += WLC_RESIZE_EDGE_LEFT;
}
} else if (dx > 0){
changed_floating = true;
if (mouse_origin.x > midway_x) {
sway_log(L_INFO, "Upsizing to the right");
view->width += dx;
- edge = WLC_RESIZE_EDGE_RIGHT;
+ edge += WLC_RESIZE_EDGE_RIGHT;
} else {
sway_log(L_INFO, "Downsizing to the right");
view->x += dx;
view->width -= dx;
- edge = WLC_RESIZE_EDGE_LEFT;
+ edge += WLC_RESIZE_EDGE_LEFT;
}
}