From 2ff859bb29f1e699f7cfc300c5e4e301be8d0f71 Mon Sep 17 00:00:00 2001 From: DreamMaoMao <2523610504@qq.com> Date: Fri, 18 Apr 2025 10:49:21 +0800 Subject: [PATCH] opt: allow exit showing scratchpad when use restore_minized dispatch --- maomao.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/maomao.c b/maomao.c index 8b6cab9..79dab96 100644 --- a/maomao.c +++ b/maomao.c @@ -1248,6 +1248,15 @@ void minized(const Arg *arg) { } void restore_minized(const Arg *arg) { + + if(selmon && selmon->sel && selmon->sel->is_in_scratchpad && selmon->sel->is_scratchpad_show) { + selmon->sel->isminied = 0; + selmon->sel->is_scratchpad_show = 0; + selmon->sel->is_in_scratchpad = 0; + setborder_color(selmon->sel); + return; + } + Client *c; wl_list_for_each(c, &clients, link) { if (c->isminied) {