summaryrefslogtreecommitdiffstats
path: root/dwm.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--dwm.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/dwm.c b/dwm.c
index 2fe70e4..3147be2 100644
--- a/dwm.c
+++ b/dwm.c
@@ -212,7 +212,7 @@ void (*handler[LASTEvent]) (XEvent *) = {
212 [UnmapNotify] = unmapnotify 212 [UnmapNotify] = unmapnotify
213}; 213};
214Atom wmatom[WMLast], netatom[NetLast]; 214Atom wmatom[WMLast], netatom[NetLast];
215Bool domax = False; 215Bool ismax = False;
216Bool otherwm, readin; 216Bool otherwm, readin;
217Bool running = True; 217Bool running = True;
218uint tagset[] = {1, 1}; /* after start, first tag is selected */ 218uint tagset[] = {1, 1}; /* after start, first tag is selected */
@@ -273,7 +273,7 @@ arrange(void) {
273 } 273 }
274 274
275 focus(NULL); 275 focus(NULL);
276 if(lt->arrange && !domax) 276 if(lt->arrange && !ismax)
277 lt->arrange(); 277 lt->arrange();
278 restack(); 278 restack();
279} 279}
@@ -328,7 +328,7 @@ buttonpress(XEvent *e) {
328 } 328 }
329 else if((c = getclient(ev->window))) { 329 else if((c = getclient(ev->window))) {
330 focus(c); 330 focus(c);
331 if(CLEANMASK(ev->state) != MODKEY || domax) 331 if(CLEANMASK(ev->state) != MODKEY || ismax)
332 return; 332 return;
333 if(ev->button == Button1) 333 if(ev->button == Button1)
334 movemouse(c); 334 movemouse(c);
@@ -500,7 +500,7 @@ drawbar(void) {
500 } 500 }
501 if(blw > 0) { 501 if(blw > 0) {
502 dc.w = blw; 502 dc.w = blw;
503 drawtext(lt->symbol, dc.norm, domax); 503 drawtext(lt->symbol, dc.norm, ismax);
504 x = dc.x + dc.w; 504 x = dc.x + dc.w;
505 } 505 }
506 else 506 else
@@ -629,7 +629,7 @@ focus(Client *c) {
629 } 629 }
630 sel = c; 630 sel = c;
631 if(c) { 631 if(c) {
632 if(domax) { 632 if(ismax) {
633 XMoveResizeWindow(dpy, c->win, wx, wy, ww - 2 * c->bw, wh - 2 * c->bw); 633 XMoveResizeWindow(dpy, c->win, wx, wy, ww - 2 * c->bw, wh - 2 * c->bw);
634 c->ismax = True; 634 c->ismax = True;
635 } 635 }
@@ -1194,9 +1194,9 @@ restack(void) {
1194 drawbar(); 1194 drawbar();
1195 if(!sel) 1195 if(!sel)
1196 return; 1196 return;
1197 if(domax || sel->isfloating || !lt->arrange) 1197 if(ismax || sel->isfloating || !lt->arrange)
1198 XRaiseWindow(dpy, sel->win); 1198 XRaiseWindow(dpy, sel->win);
1199 if(!domax && lt->arrange) { 1199 if(!ismax && lt->arrange) {
1200 wc.stack_mode = Below; 1200 wc.stack_mode = Below;
1201 wc.sibling = barwin; 1201 wc.sibling = barwin;
1202 for(c = stack; c; c = c->snext) 1202 for(c = stack; c; c = c->snext)
@@ -1512,7 +1512,7 @@ togglelayout(const void *arg) {
1512 1512
1513void 1513void
1514togglemax(const void *arg) { 1514togglemax(const void *arg) {
1515 domax = !domax; 1515 ismax = !ismax;
1516 arrange(); 1516 arrange();
1517} 1517}
1518 1518