]> git.mdlowis.com Git - proto/labwc.git/commitdiff
src/view.c: Unmaximize on SnapToEdge
authorConsolatis <35009135+Consolatis@users.noreply.github.com>
Fri, 1 Jul 2022 18:44:40 +0000 (20:44 +0200)
committerJohan Malm <johanmalm@users.noreply.github.com>
Sat, 2 Jul 2022 11:43:23 +0000 (12:43 +0100)
src/view.c

index 44349cfdf2f152f845a644a999bee4b9909d3204..53d6162802ec191453a019b8981d109fd0a0627b 100644 (file)
@@ -709,6 +709,10 @@ view_snap_to_edge(struct view *view, const char *direction)
                }
        }
 
+       if (view->maximized) {
+               view_maximize(view, false);
+       }
+
        /* TODO: store old geometry if !maximized && !fullscreen && !tiled */
        view->tiled = edge;
        view_apply_tiled_geometry(view, output);