mirror of
https://github.com/labwc/labwc.git
synced 2026-02-17 22:05:30 -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
10
src/action.c
10
src/action.c
|
|
@ -54,6 +54,16 @@ action(struct server *server, const char *action, const char *command)
|
|||
if (view) {
|
||||
view_toggle_maximize(view);
|
||||
}
|
||||
} else if (!strcasecmp(action, "ToggleFullscreen")) {
|
||||
struct view *view = topmost_mapped_view(server);
|
||||
if (view) {
|
||||
view_toggle_fullscreen(view);
|
||||
}
|
||||
} else if (!strcasecmp(action, "ToggleDecorations")) {
|
||||
struct view *view = topmost_mapped_view(server);
|
||||
if (view) {
|
||||
view_toggle_decorations(view);
|
||||
}
|
||||
} else {
|
||||
wlr_log(WLR_ERROR, "action (%s) not supported", action);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue