]> git.mdlowis.com Git - proto/labwc.git/commitdiff
mousebindings: use available resize edges first in drag actions
authorARDiDo <90479315+ARDiDo@users.noreply.github.com>
Fri, 7 Jan 2022 21:19:51 +0000 (16:19 -0500)
committerJohan Malm <johanmalm@users.noreply.github.com>
Fri, 7 Jan 2022 22:05:07 +0000 (22:05 +0000)
src/cursor.c

index 1253a6f64f59d95b445370178a657d922b36edc8..d28b2db3b0f4ce407952c80e2063638becba5554 100644 (file)
@@ -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;