[hackers] [dwm] I don't see any reason why we should select for input on override-redirect windows?

From: Anselm R. Garbe <arg_AT_suckless.org>
Date: Mon Feb 12 16:46:04 2007

changeset: 750:154b5d4b4a26
tag: tip
user: Anselm R. Garbe <arg_AT_suckless.org>
date: Mon Feb 12 16:41:46 2007 +0100
summary: I don't see any reason why we should select for input on override-redirect windows?

diff -r 03ea3a9f6788 -r 154b5d4b4a26 event.c
--- a/event.c Mon Feb 12 14:20:47 2007 +0100
+++ b/event.c Mon Feb 12 16:41:46 2007 +0100
@@ -293,11 +293,8 @@ maprequest(XEvent *e) {
 
         if(!XGetWindowAttributes(dpy, ev->window, &wa))
                 return;
- if(wa.override_redirect) {
- XSelectInput(dpy, ev->window,
- (StructureNotifyMask | PropertyChangeMask));
- return;
- }
+ if(wa.override_redirect)
+ return;
         if(!getclient(ev->window))
                 manage(ev->window, &wa);
 }
Received on Mon Feb 12 2007 - 16:46:04 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:55:13 UTC