From: ARDiDo <90479315+ARDiDo@users.noreply.github.com> Date: Fri, 7 Jan 2022 21:19:51 +0000 (-0500) Subject: mousebindings: use available resize edges first in drag actions X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=a6a923c506373325e62a4433177032d78129c65c;p=proto%2Flabwc.git mousebindings: use available resize edges first in drag actions --- diff --git a/src/cursor.c b/src/cursor.c index 1253a6f6..d28b2db3 100644 --- a/src/cursor.c +++ b/src/cursor.c @@ -234,7 +234,7 @@ process_cursor_motion(struct server *server, uint32_t time) if (mousebind->mouse_event == MOUSE_ACTION_DRAG && mousebind->pressed_in_context) { /* Find closest resize edges in case action is Resize */ - if (view) { + if (view && !resize_edges) { resize_edges |= server->seat.cursor->x < view->x + view->w / 2 ? WLR_EDGE_LEFT : WLR_EDGE_RIGHT;