From a15a56bfe1342d625dd40817604d02ddc977b8b9 Mon Sep 17 00:00:00 2001 From: bi4k8 Date: Sun, 19 Sep 2021 22:17:45 +0000 Subject: [PATCH] implement Iconify action --- src/action.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/action.c b/src/action.c index 80ce4eae..c1ed2172 100644 --- a/src/action.c +++ b/src/action.c @@ -64,6 +64,11 @@ action(struct server *server, const char *action, const char *command) if (view) { view_toggle_decorations(view); } + } else if (!strcasecmp(action, "Iconify")) { + struct view *view = topmost_mapped_view(server); + if (view) { + view_minimize(view, true); + } } else { wlr_log(WLR_ERROR, "action (%s) not supported", action); }