Re: [dev] Re: [dwm] dwm-hg, layouts, setfocus and pertag patch

From: garbeam <garbeam_AT_gmail.com>
Date: Sat, 11 Jun 2011 08:24:33 +0100

On 24 May 2011 21:44, Bogdan Ionuț <bogdan_AT_punctweb.ro> wrote:
> 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);
>      }

I don't really see a big difference here. Do you run this in a multi
monitor setup by any chance?
I imagine problems with this approach in case c->mon != selmon.

Best regards,
--garbeam
Received on Sat Jun 11 2011 - 09:24:33 CEST

This archive was generated by hypermail 2.2.0 : Sat Jun 11 2011 - 09:36:03 CEST