implement Iconify action

This commit is contained in:
bi4k8 2021-09-19 22:17:45 +00:00 committed by Johan Malm
parent b7cce58f56
commit a15a56bfe1

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);
} }