aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Luminarys <kizunanohikari@gmail.com>2015-08-18 18:04:46 -0500
committerLibravatar Luminarys <kizunanohikari@gmail.com>2015-08-18 18:04:46 -0500
commitab43927a470f46271ae98faa4e1cfe3a936c6c9d (patch)
tree251a7291b6daf626a34288042dc0a69659cce36e
parentFixes to make floating windows work better (diff)
downloadsway-ab43927a470f46271ae98faa4e1cfe3a936c6c9d.tar.gz
sway-ab43927a470f46271ae98faa4e1cfe3a936c6c9d.tar.zst
sway-ab43927a470f46271ae98faa4e1cfe3a936c6c9d.zip
Minor fixes that might be helpful later
-rw-r--r--sway/handlers.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sway/handlers.c b/sway/handlers.c
index 99d57529..c20f3ca0 100644
--- 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
371 if (mouse_origin.x > midway_x) { 371 if (mouse_origin.x > midway_x) {
372 sway_log(L_INFO, "Downsizing view to the left"); 372 sway_log(L_INFO, "Downsizing view to the left");
373 view->width += dx; 373 view->width += dx;
374 edge = WLC_RESIZE_EDGE_RIGHT; 374 edge += WLC_RESIZE_EDGE_RIGHT;
375 } else { 375 } else {
376 sway_log(L_INFO, "Upsizing view to the left"); 376 sway_log(L_INFO, "Upsizing view to the left");
377 view->x += dx; 377 view->x += dx;
378 view->width -= dx; 378 view->width -= dx;
379 edge = WLC_RESIZE_EDGE_LEFT; 379 edge += WLC_RESIZE_EDGE_LEFT;
380 } 380 }
381 } else if (dx > 0){ 381 } else if (dx > 0){
382 changed_floating = true; 382 changed_floating = true;
383 if (mouse_origin.x > midway_x) { 383 if (mouse_origin.x > midway_x) {
384 sway_log(L_INFO, "Upsizing to the right"); 384 sway_log(L_INFO, "Upsizing to the right");
385 view->width += dx; 385 view->width += dx;
386 edge = WLC_RESIZE_EDGE_RIGHT; 386 edge += WLC_RESIZE_EDGE_RIGHT;
387 } else { 387 } else {
388 sway_log(L_INFO, "Downsizing to the right"); 388 sway_log(L_INFO, "Downsizing to the right");
389 view->x += dx; 389 view->x += dx;
390 view->width -= dx; 390 view->width -= dx;
391 edge = WLC_RESIZE_EDGE_LEFT; 391 edge += WLC_RESIZE_EDGE_LEFT;
392 } 392 }
393 } 393 }
394 394