implement Iconify action

This commit is contained in:
bi4k8 2021-09-19 22:17:45 +00:00
parent 1caedc2492
commit e4bf5267a8

View file

@ -64,6 +64,11 @@ action(struct server *server, const char *action, const char *command)
if (view) { if (view) {
view_toggle_decorations(view); view_toggle_decorations(view);
} }
} else if (!strcasecmp(action, "Iconify")) {
struct view *view = topmost_mapped_view(server);
if (view) {
view_minimize(view, true);
}
} else { } else {
wlr_log(WLR_ERROR, "action (%s) not supported", action); wlr_log(WLR_ERROR, "action (%s) not supported", action);
} }