On Sat, May 14, 2011 at 18:53, Bogdan Ionuț <bogdan_AT_punctweb.ro> wrote:
> Hello guys,
>
> I'm using dwm-hg aka dwm 5.9 with dwm-5.8.2-pertag_without_bar.diff, and I
> have a problem with layouts and setfocus "feature" (commit 7e2a8fec8d6c).
> Firefox by default is using tag 9, so go to tag 9 and set monocle layout,
> after go to tag 1 and start firefox from this tag using tile layout. Now
> firefox should start and tags switched from 1 to 9, but 'cause of the
> setfocus feature is using the layout from the old tag (tile) in the new tag
> (which should be monocle), but if you switch tags using the keyboard (eg.
> mod+1, mod+9), the correct layout is shown in tag 9. Sorry for the long
> story, but this is getting more and more annoying as I use ~2-3 apps in
> monocle layout all the time in the `web` tag. Any workaround for this?
>
I find out it's related to commit 40ea9ad70440, and this dirty patch seems
to fix my issue.
--- a/dwm.c 2011-05-24 23:38:52.799999994 +0300
+++ b/dwm.c 2011-05-24 23:39:40.543000014 +0300
@@ -582,8 +582,8 @@ clientmessage(XEvent *e) {
}
else if(cme->message_type == netatom[NetActiveWindow]) {
if(!ISVISIBLE(c)) {
- c->mon->seltags ^= 1;
- c->mon->tagset[c->mon->seltags] = c->tags;
+ Arg a = { .ui = c->tags };
+ view(&a);
}
pop(c);
}
Received on Tue May 24 2011 - 22:44:06 CEST
This archive was generated by hypermail 2.2.0 : Tue May 24 2011 - 22:48:02 CEST