summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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);
}