]> git.mdlowis.com Git - proto/labwc.git/commitdiff
view: resize_relative disable for fullscreen and maximized and set untiled
authorPh42oN <julle.ys.57@gmail.com>
Sun, 2 Jul 2023 20:25:24 +0000 (23:25 +0300)
committerJohan Malm <johanmalm@users.noreply.github.com>
Mon, 3 Jul 2023 15:42:43 +0000 (16:42 +0100)
src/view.c

index 8e85fc21ed01d4cacc6ba339c5690f95b043d037..77a8cdcc8a51c18f10114ed58345360dcf8589ee 100644 (file)
@@ -206,12 +206,15 @@ view_move_resize(struct view *view, struct wlr_box geo)
 void
 view_resize_relative(struct view *view, int left, int right, int top, int bottom)
 {
+       if (view->fullscreen || view->maximized)
+               return;
        struct wlr_box newgeo = view->pending;
        newgeo.x -= left;
        newgeo.width += left + right;
        newgeo.y -= top;
        newgeo.height += top + bottom;
        view_move_resize(view, newgeo);
+       view_set_untiled(view);
 }
 
 void