implement ToggleDecorations and ToggleFullscreen actions

This commit is contained in:
bi4k8 2021-09-19 22:16:56 +00:00 committed by Johan Malm
parent 3d15444b3a
commit b7cce58f56
3 changed files with 25 additions and 0 deletions

View file

@ -107,6 +107,19 @@ view_toggle_maximize(struct view *view)
view_maximize(view, !view->maximized);
}
void
view_toggle_decorations(struct view *view)
{
view->ssd.enabled = !view->ssd.enabled;
ssd_update_geometry(view, true);
}
void
view_toggle_fullscreen(struct view *view)
{
view_set_fullscreen(view, !view->fullscreen, NULL);
}
void
view_set_fullscreen(struct view *view, bool fullscreen,
struct wlr_output *wlr_output)