[from m...@]

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.


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);
 }


-- 
Christian Neukirchen  <[email protected]>  http://chneukirchen.org

Reply via email to