Co-authored-by: tokyo4j <hrak1529@gmail.com>
See labwc-config(5) for further information on how to define regions.
*<action name="UnSnap" />*
- Resize and move active window back to its untiled position if
- it had been tiled to a direction or region.
+ Resize and move the active window back to its untiled or unmaximized
+ position if it had been maximized or tiled to a direction or region.
*<action name="NextWindow" />*++
*<action name="PreviousWindow" />*
}
break;
case ACTION_TYPE_UNSNAP:
- if (view && view->maximized == VIEW_AXIS_NONE && !view->fullscreen
- && view_is_tiled(view)) {
+ if (view && !view->fullscreen && !view_is_floating(view)) {
+ view_maximize(view, VIEW_AXIS_NONE,
+ /* store_natural_geometry */ false);
view_set_untiled(view);
view_apply_natural_geometry(view);
}