[hackers] [wmii] Ignore ClientClick events that pass through client windows. || Kris Maglione

From: <hg_AT_suckless.org>
Date: Fri, 28 May 2010 16:46:59 +0000 (UTC)

changeset: 2665:4b71bf397336
tag: tip
user: Kris Maglione <kris_AT_suckless.org>
date: Fri May 28 12:46:48 2010 -0400
files: cmd/wmii/frame.c mk/gcc.mk
description:
Ignore ClientClick events that pass through client windows.

diff -r a8059aae4368 -r 4b71bf397336 cmd/wmii/frame.c
--- a/cmd/wmii/frame.c Fri May 28 11:05:01 2010 -0400
+++ b/cmd/wmii/frame.c Fri May 28 12:46:48 2010 -0400
@@ -140,7 +140,8 @@
                 XAllowEvents(display, ReplayPointer, e->time);
         else
                 XUngrabPointer(display, e->time);
- event("ClientClick %#C %d\n", aux, e->button);
+ if(!e->subwindow)
+ event("ClientClick %#C %d\n", aux, e->button);
         return false;
 }
 
diff -r a8059aae4368 -r 4b71bf397336 mk/gcc.mk
--- a/mk/gcc.mk Fri May 28 11:05:01 2010 -0400
+++ b/mk/gcc.mk Fri May 28 12:46:48 2010 -0400
@@ -23,6 +23,6 @@
         -Wreturn-type \
         -Wstrict-prototypes \
         -Wtrigraphs
-MKDEP = cpp -MM
+MKDEP = cpp -M
 SOCFLAGS += -fPIC
 
Received on Fri May 28 2010 - 16:46:59 UTC

This archive was generated by hypermail 2.2.0 : Fri May 28 2010 - 16:48:04 UTC