summaryrefslogtreecommitdiffhomepage
path: root/patch/bar_wintitleactions.c
diff options
context:
space:
mode:
authorbakkeby <[email protected]>2020-09-05 15:59:38 +0200
committerbakkeby <[email protected]>2020-09-05 15:59:38 +0200
commitfce55dadcb6bf81550f16ebad7270b99d5d08c47 (patch)
tree2212cf7bf8168b650215691cd69a0280ea6cdf09 /patch/bar_wintitleactions.c
parentc14f40190e230070d0975f3ee3f66bca4da19774 (diff)
downloaddwm-flexipatch-fce55dadcb6bf81550f16ebad7270b99d5d08c47.tar.gz
dwm-flexipatch-fce55dadcb6bf81550f16ebad7270b99d5d08c47.zip
showhideclient: focus on client after coming out of hidden/iconic state
Diffstat (limited to 'patch/bar_wintitleactions.c')
-rw-r--r--patch/bar_wintitleactions.c5
1 files 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);
}