mirror of
https://github.com/labwc/labwc.git
synced 2025-11-03 09:01:51 -05:00
implement ToggleDecorations and ToggleFullscreen actions
This commit is contained in:
parent
3d15444b3a
commit
b7cce58f56
3 changed files with 25 additions and 0 deletions
13
src/view.c
13
src/view.c
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue