Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

do not warp to clients marked 'ignore'; from chneukirchen at gmail - …

…thanks.

(with the manpage bit from me).

ok oga@
  • Loading branch information...
commit dee6ac5b7db3605e1364789001aa2502f0b2d287 1 parent 2d66003
okan authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 xevents.c
View
6 xevents.c
@@ -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);
}
Please sign in to comment.
Something went wrong with that request. Please try again.