From fce55dadcb6bf81550f16ebad7270b99d5d08c47 Mon Sep 17 00:00:00 2001 From: bakkeby Date: Sat, 5 Sep 2020 15:59:38 +0200 Subject: [PATCH] showhideclient: focus on client after coming out of hidden/iconic state --- patch/bar_wintitleactions.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/patch/bar_wintitleactions.c b/patch/bar_wintitleactions.c index 28dfa55..a9ae3e1 100644 --- a/patch/bar_wintitleactions.c +++ b/patch/bar_wintitleactions.c @@ -57,7 +57,7 @@ togglewin(const Arg *arg) if (HIDDEN(c)) show(c); focus(c); - restack(selmon); + restack(c->mon); } } @@ -82,7 +82,8 @@ showhideclient(const Arg *arg) if (HIDDEN(c)) { show(c); - restack(selmon); + focus(c); + restack(c->mon); } else { hide(c); }