mirror of
https://github.com/leahneukirchen/cwm.git
synced 2023-08-10 21:13:12 +03:00
do not warp to clients marked 'ignore'; from chneukirchen at gmail - thanks.
(with the manpage bit from me). ok oga@
This commit is contained in:
parent
2d66003e4b
commit
dee6ac5b7d
@ -76,6 +76,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);
|
||||
@ -85,6 +86,11 @@ 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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user