diff event.c @ 371:fc9d35252ab4

applied sanders somepatches.patch
author Anselm R. Garbe <arg@10kloc.org>
date Mon, 28 Aug 2006 08:02:29 +0200
parents ba6c55e1b9b2
children a9b4077ec058
line wrap: on
line diff
--- a/event.c	Fri Aug 25 18:14:55 2006 +0200
+++ b/event.c	Mon Aug 28 08:02:29 2006 +0200
@@ -116,8 +116,10 @@
 				return;
 			}
 		}
-		if(ev->x < x + bmw)
-			togglemode(NULL);
+		if(ev->x < x + bmw) {
+			if(ev->button == Button1)
+				togglemode(NULL);
+		}
 	}
 	else if((c = getclient(ev->window))) {
 		focus(c);