mirror of
https://github.com/labwc/labwc.git
synced 2026-03-09 05:33:53 -04:00
action: implicitely unmaximize when unsnapping
Co-authored-by: tokyo4j <hrak1529@gmail.com>
This commit is contained in:
parent
694c5a7469
commit
b9414d8b8d
2 changed files with 5 additions and 4 deletions
|
|
@ -109,8 +109,8 @@ Actions are used in menus and keyboard/mouse bindings.
|
||||||
See labwc-config(5) for further information on how to define regions.
|
See labwc-config(5) for further information on how to define regions.
|
||||||
|
|
||||||
*<action name="UnSnap" />*
|
*<action name="UnSnap" />*
|
||||||
Resize and move active window back to its untiled position if
|
Resize and move the active window back to its untiled or unmaximized
|
||||||
it had been tiled to a direction or region.
|
position if it had been maximized or tiled to a direction or region.
|
||||||
|
|
||||||
*<action name="NextWindow" />*++
|
*<action name="NextWindow" />*++
|
||||||
*<action name="PreviousWindow" />*
|
*<action name="PreviousWindow" />*
|
||||||
|
|
|
||||||
|
|
@ -1172,8 +1172,9 @@ actions_run(struct view *activator, struct server *server,
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case ACTION_TYPE_UNSNAP:
|
case ACTION_TYPE_UNSNAP:
|
||||||
if (view && view->maximized == VIEW_AXIS_NONE && !view->fullscreen
|
if (view && !view->fullscreen && !view_is_floating(view)) {
|
||||||
&& view_is_tiled(view)) {
|
view_maximize(view, VIEW_AXIS_NONE,
|
||||||
|
/* store_natural_geometry */ false);
|
||||||
view_set_untiled(view);
|
view_set_untiled(view);
|
||||||
view_apply_natural_geometry(view);
|
view_apply_natural_geometry(view);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue