summaryrefslogtreecommitdiffhomepage
path: root/patch/shiftviewclients.c
diff options
context:
space:
mode:
Diffstat (limited to 'patch/shiftviewclients.c')
-rw-r--r--patch/shiftviewclients.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/patch/shiftviewclients.c b/patch/shiftviewclients.c
index 5755e7c..f64f42b 100644
--- a/patch/shiftviewclients.c
+++ b/patch/shiftviewclients.c
@@ -10,6 +10,8 @@ shiftviewclients(const Arg *arg)
for (selmon = mons; selmon; selmon = selmon->next)
#endif // TAGSYNC_PATCH
for (c = selmon->clients; c; c = c->next) {
+ if (c == selmon->sel)
+ continue;
#if SCRATCHPADS_PATCH && !RENAMED_SCRATCHPADS_PATCH
if (!(c->tags & SPTAGMASK))
tagmask = tagmask | c->tags;
@@ -44,4 +46,3 @@ shiftviewclients(const Arg *arg)
view(&shifted);
}
-