mirror of
https://github.com/labwc/labwc.git
synced 2025-11-04 13:30:07 -05:00
view: add view_toggle_maximize()
This commit is contained in:
parent
d6376808b8
commit
526ab1ae75
5 changed files with 12 additions and 12 deletions
|
|
@ -50,13 +50,8 @@ action(struct server *server, const char *action, const char *command)
|
|||
show_menu(server, command);
|
||||
} else if (!strcasecmp(action, "ToggleMaximize")) {
|
||||
struct view *view = topmost_mapped_view(server);
|
||||
if (!view) {
|
||||
return;
|
||||
}
|
||||
if (view->maximized) {
|
||||
view_maximize(view, false);
|
||||
} else {
|
||||
view_maximize(view, true);
|
||||
if (view) {
|
||||
view_toggle_maximize(view);
|
||||
}
|
||||
} else {
|
||||
wlr_log(WLR_ERROR, "action (%s) not supported", action);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue