diff options
| author | bakkeby <[email protected]> | 2020-09-05 09:11:12 +0200 |
|---|---|---|
| committer | bakkeby <[email protected]> | 2020-09-05 09:11:12 +0200 |
| commit | dcf7b049bade7767f9a7c726ae445c86cedcd291 (patch) | |
| tree | df7d421c5f08ff84c704320ee93cfb10319cbfc5 /patch | |
| parent | 69277ea1a863463399fe9e50bb9228255e816244 (diff) | |
| download | dwm-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.c | 8 |
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); } } |
