On Mon, 09 Aug 2010 22:53:30 +0200 Christian Neukirchen <[email protected]> wrote: > > cwm currently warps to all newly mapped windows. I think it would be > nice to not warp to windows marked as "ignore" in .cwmrc, so popping > windows you are not interested in don't disturb you. >
Works fine for me. While I don't really have a need for this personally, I can see where it might be useful and I think it should be considered for inclusion (FWIW). You should also update cwmrc(5). > diff --git a/xenocara/app/cwm/xevents.c b/xenocara/app/cwm/xevents.c > index 9681790..47cbadd 100644 > --- a/xenocara/app/cwm/xevents.c > +++ b/xenocara/app/cwm/xevents.c > @@ -77,6 +77,7 @@ xev_handle_maprequest(XEvent *ee) > XMapRequestEvent *e = &ee->xmaprequest; > struct client_ctx *cc = NULL, *old_cc; > XWindowAttributes xattr; > + struct winmatch *wm; > > if ((old_cc = client_current()) != NULL) > client_ptrsave(old_cc); > @@ -86,6 +87,10 @@ xev_handle_maprequest(XEvent *ee) > cc = client_new(e->window, screen_fromroot(xattr.root), 1); > } > > + TAILQ_FOREACH(wm, &Conf.ignoreq, entry) > + if (strncasecmp(wm->title, cc->name, strlen(wm->title)) == 0) > + return; > + > client_ptrwarp(cc); > }
