summaryrefslogtreecommitdiffstats
path: root/event.c
diff options
context:
space:
mode:
Diffstat (limited to 'event.c')
-rw-r--r--event.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/event.c b/event.c
index 4b3c1e3..d200a8d 100644
--- a/event.c
+++ b/event.c
@@ -137,10 +137,10 @@ buttonpress(XEvent *e) {
137 return; 137 return;
138 } 138 }
139 } 139 }
140 if(ev->x < x + bmw) 140 if(ev->x < x + blw)
141 switch(ev->button) { 141 switch(ev->button) {
142 case Button1: 142 case Button1:
143 togglemode(NULL); 143 togglelayout(NULL);
144 break; 144 break;
145 case Button4: 145 case Button4:
146 a.i = 1; 146 a.i = 1;
@@ -156,14 +156,14 @@ buttonpress(XEvent *e) {
156 focus(c); 156 focus(c);
157 if(CLEANMASK(ev->state) != MODKEY) 157 if(CLEANMASK(ev->state) != MODKEY)
158 return; 158 return;
159 if(ev->button == Button1 && (arrange == dofloat || c->isfloat)) { 159 if(ev->button == Button1 && (lt->arrange == dofloat || c->isfloat)) {
160 restack(); 160 restack();
161 movemouse(c); 161 movemouse(c);
162 } 162 }
163 else if(ev->button == Button2) 163 else if(ev->button == Button2)
164 zoom(NULL); 164 zoom(NULL);
165 else if(ev->button == Button3 165 else if(ev->button == Button3
166 && (arrange == dofloat || c->isfloat) && !c->isfixed) 166 && (lt->arrange == dofloat || c->isfloat) && !c->isfixed)
167 { 167 {
168 restack(); 168 restack();
169 resizemouse(c); 169 resizemouse(c);
@@ -181,7 +181,7 @@ configurerequest(XEvent *e) {
181 c->ismax = False; 181 c->ismax = False;
182 if(ev->value_mask & CWBorderWidth) 182 if(ev->value_mask & CWBorderWidth)
183 c->border = ev->border_width; 183 c->border = ev->border_width;
184 if(c->isfixed || c->isfloat || (arrange == dofloat)) { 184 if(c->isfixed || c->isfloat || (lt->arrange == dofloat)) {
185 if(ev->value_mask & CWX) 185 if(ev->value_mask & CWX)
186 c->x = ev->x; 186 c->x = ev->x;
187 if(ev->value_mask & CWY) 187 if(ev->value_mask & CWY)
@@ -310,7 +310,7 @@ propertynotify(XEvent *e) {
310 case XA_WM_TRANSIENT_FOR: 310 case XA_WM_TRANSIENT_FOR:
311 XGetTransientForHint(dpy, c->win, &trans); 311 XGetTransientForHint(dpy, c->win, &trans);
312 if(!c->isfloat && (c->isfloat = (trans != 0))) 312 if(!c->isfloat && (c->isfloat = (trans != 0)))
313 arrange(); 313 lt->arrange();
314 break; 314 break;
315 case XA_WM_NORMAL_HINTS: 315 case XA_WM_NORMAL_HINTS:
316 updatesizehints(c); 316 updatesizehints(c);