diff options
author | okan <okan> | 2014-02-02 21:34:05 +0000 |
---|---|---|
committer | okan <okan> | 2014-02-02 21:34:05 +0000 |
commit | b923524a8e637141c0c832f6c8989ee600b67946 (patch) | |
tree | b320db4f8e1b54cda2d7781fa617a6aaa27a9839 /xevents.c | |
parent | c7d4add2f27b74f62be3dd973bca402eb89ee5cb (diff) | |
parent | ad76995af7e1bbae8ec81dd917def917453c379b (diff) | |
download | cwm-b923524a8e637141c0c832f6c8989ee600b67946.tar.gz cwm-b923524a8e637141c0c832f6c8989ee600b67946.tar.xz cwm-b923524a8e637141c0c832f6c8989ee600b67946.zip |
cvsimport
Diffstat (limited to 'xevents.c')
-rw-r--r-- | xevents.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/xevents.c b/xevents.c index 17dea12..716d72b 100644 --- a/xevents.c +++ b/xevents.c @@ -75,17 +75,14 @@ xev_handle_maprequest(XEvent *ee) { XMapRequestEvent *e = &ee->xmaprequest; struct client_ctx *cc = NULL, *old_cc; - XWindowAttributes xattr; if ((old_cc = client_current())) client_ptrsave(old_cc); - if ((cc = client_find(e->window)) == NULL) { - XGetWindowAttributes(X_Dpy, e->window, &xattr); - cc = client_init(e->window, screen_fromroot(xattr.root), 1); - } + if ((cc = client_find(e->window)) == NULL) + cc = client_init(e->window, NULL, 1); - if ((cc->flags & CLIENT_IGNORE) == 0) + if ((cc != NULL) && ((cc->flags & CLIENT_IGNORE) == 0)) client_ptrwarp(cc); } |