aboutsummaryrefslogtreecommitdiffstats
path: root/event.c
diff options
context:
space:
mode:
authorAnselm R.Garbe <arg@10ksloc.org>2006-08-21 09:03:14 +0200
committerAnselm R.Garbe <arg@10ksloc.org>2006-08-21 09:03:14 +0200
commit2272df9d3179ec639066614f4d36d18df16ff725 (patch)
treecfb041f3b9838c669942dda1fcaab2ef34eaa89a /event.c
parent08d85d6d66bc4493414d76e470e473fa689c5990 (diff)
downloaddwm-2272df9d3179ec639066614f4d36d18df16ff725.tar.gz
applied Sanders focus_* patches, removed the unnecessary clean-prefix from the new function names
Diffstat (limited to 'event.c')
-rw-r--r--event.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/event.c b/event.c
index 5209be3..c2288f4 100644
--- a/event.c
+++ b/event.c
@@ -119,6 +119,8 @@ buttonpress(XEvent *e)
}
else if((c = getclient(ev->window))) {
focus(c);
+ if(CLEANMASK(ev->state) == 0)
+ return;
switch(ev->button) {
default:
break;
remember that computers suck.