From 1de345573331fef0498a189b39eb0412eb0e96d8 Mon Sep 17 00:00:00 2001 From: DreamMaoMao <2523610504@qq.com> Date: Fri, 16 May 2025 13:57:28 +0800 Subject: [PATCH] opt: optimize the order adjustment of scratchpad in clients link --- src/maomao.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/maomao.c b/src/maomao.c index c598de4..23f9487 100644 --- a/src/maomao.c +++ b/src/maomao.c @@ -1416,6 +1416,8 @@ void show_scratchpad(Client *c) { } c->oldtags = selmon->tagset[selmon->seltags]; c->is_clip_to_hide = false; + wl_list_remove(&c->link); // 从原来位置移除 + wl_list_insert(clients.prev->next, &c->link); // 插入开头 show_hide_client(c); setborder_color(c); }