]> git.mdlowis.com Git - proto/labwc.git/commitdiff
implement Iconify action
authorbi4k8 <bi4k8@github>
Sun, 19 Sep 2021 22:17:45 +0000 (22:17 +0000)
committerJohan Malm <johanmalm@users.noreply.github.com>
Mon, 20 Sep 2021 20:14:24 +0000 (21:14 +0100)
src/action.c

index 80ce4eaeed5a04820f613c05801bfe91176cb9ec..c1ed2172a3bc6b2757321a170478a6765e1b4e59 100644 (file)
@@ -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);
        }