]> git.mdlowis.com Git - proto/labwc.git/commitdiff
src/view.c: Re-arrange tiled windows on layout change
authorConsolatis <35009135+Consolatis@users.noreply.github.com>
Fri, 1 Jul 2022 00:12:23 +0000 (02:12 +0200)
committerJohan Malm <johanmalm@users.noreply.github.com>
Sat, 2 Jul 2022 11:43:23 +0000 (12:43 +0100)
src/view.c

index 8c3938fbdeadb8e142010a4bce32e5a8db3dcb00..a7aadc285973df59d1a0ddf886642f5d3c58556d 100644 (file)
@@ -525,6 +525,9 @@ view_adjust_for_layout_change(struct view *view)
        } else if (view->maximized) {
                /* recompute maximized geometry */
                view_apply_maximized_geometry(view);
+       } else if (view->tiled) {
+               /* recompute tiled geometry */
+               view_apply_tiled_geometry(view, NULL);
        } else {
                /* reposition view if it's offscreen */
                struct wlr_box box = { view->x, view->y, view->w, view->h };