summaryrefslogtreecommitdiffhomepage
path: root/patch
diff options
context:
space:
mode:
authorbakkeby <[email protected]>2020-09-05 09:11:12 +0200
committerbakkeby <[email protected]>2020-09-05 09:11:12 +0200
commitdcf7b049bade7767f9a7c726ae445c86cedcd291 (patch)
treedf7d421c5f08ff84c704320ee93cfb10319cbfc5 /patch
parent69277ea1a863463399fe9e50bb9228255e816244 (diff)
downloaddwm-flexipatch-dcf7b049bade7767f9a7c726ae445c86cedcd291.tar.gz
dwm-flexipatch-dcf7b049bade7767f9a7c726ae445c86cedcd291.zip
Adding view same tag gives previous tag patch
Diffstat (limited to 'patch')
-rw-r--r--patch/focusurgent.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/patch/focusurgent.c b/patch/focusurgent.c
index cebb5a3..74946ce 100644
--- a/patch/focusurgent.c
+++ b/patch/focusurgent.c
@@ -3,12 +3,12 @@ focusurgent(const Arg *arg)
{
Client *c;
int i;
- for (c=selmon->clients; c && !c->isurgent; c=c->next);
+ for (c = selmon->clients; c && !c->isurgent; c = c->next);
if (c) {
- for (i=0; i < NUMTAGS && !((1 << i) & c->tags); i++);
+ for (i = 0; i < NUMTAGS && !((1 << i) & c->tags); i++);
if (i < NUMTAGS) {
- const Arg a = {.ui = 1 << i};
- view(&a);
+ if (((1 << i) & TAGMASK) != selmon->tagset[selmon->seltags])
+ view(&((Arg) { .ui = 1 << i }));
focus(c);
}
}