mirror of
https://github.com/labwc/labwc.git
synced 2025-11-05 13:29:58 -05:00
view: resize_relative disable for fullscreen and maximized and set untiled
This commit is contained in:
parent
370cdc80e0
commit
934bf1c5b3
1 changed files with 3 additions and 0 deletions
|
|
@ -206,12 +206,15 @@ view_move_resize(struct view *view, struct wlr_box geo)
|
||||||
void
|
void
|
||||||
view_resize_relative(struct view *view, int left, int right, int top, int bottom)
|
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;
|
struct wlr_box newgeo = view->pending;
|
||||||
newgeo.x -= left;
|
newgeo.x -= left;
|
||||||
newgeo.width += left + right;
|
newgeo.width += left + right;
|
||||||
newgeo.y -= top;
|
newgeo.y -= top;
|
||||||
newgeo.height += top + bottom;
|
newgeo.height += top + bottom;
|
||||||
view_move_resize(view, newgeo);
|
view_move_resize(view, newgeo);
|
||||||
|
view_set_untiled(view);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue