diff options
-rw-r--r-- | sway/handlers.c | 8 |
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 | ||