From 0ac95dbd8d13d788bf0e89ea01e1bc923dfe6177 Mon Sep 17 00:00:00 2001 From: DreamMaoMao <2523610504@qq.com> Date: Thu, 13 Mar 2025 09:26:02 +0800 Subject: [PATCH] opt: allow client exit minimized status when it is focused --- maomao.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/maomao.c b/maomao.c index 67668b7..5b068f3 100644 --- a/maomao.c +++ b/maomao.c @@ -1151,6 +1151,15 @@ void minized(const Arg *arg) { void restore_minized(const Arg *arg) { Client *c; + + if(selmon && selmon->sel && selmon->sel->is_scratchpad_show && !selmon->sel->iskilling) { + show_hide_client(selmon->sel); + selmon->sel->is_scratchpad_show = 0; + selmon->sel->is_in_scratchpad = 0; + setborder_color(selmon->sel); + return; + } + wl_list_for_each(c, &clients, link) { if (c->isminied) { show_hide_client(c);