]> git.mdlowis.com Git - proto/labwc.git/commitdiff
view: remove an obsolete code in view_snap_to_edge()
authortokyo4j <hrak1529@gmail.com>
Sun, 14 Sep 2025 18:54:40 +0000 (03:54 +0900)
committerHiroaki Yamamoto <hrak1529@gmail.com>
Fri, 19 Sep 2025 07:23:23 +0000 (16:23 +0900)
We no longer need to call view_apply_tiled_geometry() there, since we now
clear view->tiled when dragging a tiled window since 9f51384.

src/view.c

index 97616cbc391d797474da07244aa9e911709dc5df..13b36a54fb3ad5a8bbb447c7c75848cc40490ba3 100644 (file)
@@ -2145,17 +2145,7 @@ view_snap_to_edge(struct view *view, enum lab_edge edge,
        if (across_outputs && view->tiled == edge && view->maximized == VIEW_AXIS_NONE) {
                /* We are already tiled for this edge; try to switch outputs */
                output = output_get_adjacent(view->output, edge, /* wrap */ false);
-
                if (!output) {
-                       /*
-                        * No more output to move to
-                        *
-                        * We re-apply the tiled geometry without changing any
-                        * state because the window might have been moved away
-                        * (and thus got untiled) and then snapped back to the
-                        * original edge.
-                        */
-                       view_apply_tiled_geometry(view);
                        return;
                }