summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnselm R Garbe <garbeam@gmail.com>2008-06-14 11:21:50 +0100
committerAnselm R Garbe <garbeam@gmail.com>2008-06-14 11:21:50 +0100
commit9ff5143acba0c6b457bfb92370c8397b7f124f3a (patch)
tree87ed5a4546be8216cc6a1039dd030612dde148bb
parentremoved font and color definitions (diff)
downloaddwm-9ff5143acba0c6b457bfb92370c8397b7f124f3a.tar.gz
dwm-9ff5143acba0c6b457bfb92370c8397b7f124f3a.zip
removed root window click handling
-rw-r--r--config.def.h1
-rw-r--r--dwm.c4
2 files changed, 2 insertions, 3 deletions
diff --git a/config.def.h b/config.def.h
index 49d2f1f..d6566bf 100644
--- a/config.def.h
+++ b/config.def.h
@@ -100,7 +100,6 @@ static Button buttons[] = {
100 { ClkClientWin, MODKEY, Button1, movemouse, {0} }, 100 { ClkClientWin, MODKEY, Button1, movemouse, {0} },
101 { ClkClientWin, MODKEY, Button2, togglefloating, {0} }, 101 { ClkClientWin, MODKEY, Button2, togglefloating, {0} },
102 { ClkClientWin, MODKEY, Button3, resizemouse, {0} }, 102 { ClkClientWin, MODKEY, Button3, resizemouse, {0} },
103 { ClkRootWin, Button1Mask, Button3, spawn, {.v = termcmd } },
104 TAGBUTTONS(0) 103 TAGBUTTONS(0)
105 TAGBUTTONS(1) 104 TAGBUTTONS(1)
106 TAGBUTTONS(2) 105 TAGBUTTONS(2)
diff --git a/dwm.c b/dwm.c
index 05c0199..dd55ee2 100644
--- a/dwm.c
+++ b/dwm.c
@@ -60,7 +60,7 @@ enum { ColBorder, ColFG, ColBG, ColLast }; /* color */
60enum { NetSupported, NetWMName, NetLast }; /* EWMH atoms */ 60enum { NetSupported, NetWMName, NetLast }; /* EWMH atoms */
61enum { WMProtocols, WMDelete, WMName, WMState, WMLast };/* default atoms */ 61enum { WMProtocols, WMDelete, WMName, WMState, WMLast };/* default atoms */
62enum { ClkLtSymbol = 64, ClkStatusText, ClkWinTitle, 62enum { ClkLtSymbol = 64, ClkStatusText, ClkWinTitle,
63 ClkClientWin, ClkRootWin, ClkLast }; /* clicks */ 63 ClkClientWin, ClkLast }; /* clicks */
64 64
65/* typedefs */ 65/* typedefs */
66typedef unsigned int uint; 66typedef unsigned int uint;
@@ -312,7 +312,7 @@ buttonpress(XEvent *e) {
312 Client *c; 312 Client *c;
313 XButtonPressedEvent *ev = &e->xbutton; 313 XButtonPressedEvent *ev = &e->xbutton;
314 314
315 click = ClkRootWin; 315 click = ClkLast;
316 if(ev->window == barwin) { 316 if(ev->window == barwin) {
317 i = x = 0; 317 i = x = 0;
318 do 318 do