diff options
| -rw-r--r-- | main.c | 4 | ||||
| -rw-r--r-- | tile.c | 6 |
2 files changed, 5 insertions, 5 deletions
| @@ -19,7 +19,7 @@ | |||
| 19 | 19 | ||
| 20 | char stext[256]; | 20 | char stext[256]; |
| 21 | int bh, bmw, screen, sx, sy, sw, sh, wax, way, waw, wah; | 21 | int bh, bmw, screen, sx, sy, sw, sh, wax, way, waw, wah; |
| 22 | unsigned int master, nmaster, ntags, numlockmask; | 22 | unsigned int ntags, numlockmask; |
| 23 | Atom wmatom[WMLast], netatom[NetLast]; | 23 | Atom wmatom[WMLast], netatom[NetLast]; |
| 24 | Bool running = True; | 24 | Bool running = True; |
| 25 | Bool *seltag; | 25 | Bool *seltag; |
| @@ -133,8 +133,6 @@ setup(void) { | |||
| 133 | sx = sy = 0; | 133 | sx = sy = 0; |
| 134 | sw = DisplayWidth(dpy, screen); | 134 | sw = DisplayWidth(dpy, screen); |
| 135 | sh = DisplayHeight(dpy, screen); | 135 | sh = DisplayHeight(dpy, screen); |
| 136 | master = MASTER; | ||
| 137 | nmaster = NMASTER; | ||
| 138 | bmw = textw(TILESYMBOL) > textw(FLOATSYMBOL) ? textw(TILESYMBOL) : textw(FLOATSYMBOL); | 136 | bmw = textw(TILESYMBOL) > textw(FLOATSYMBOL) ? textw(TILESYMBOL) : textw(FLOATSYMBOL); |
| 139 | /* bar */ | 137 | /* bar */ |
| 140 | dc.h = bh = dc.font.height + 2; | 138 | dc.h = bh = dc.font.height + 2; |
| @@ -3,15 +3,17 @@ | |||
| 3 | */ | 3 | */ |
| 4 | #include "dwm.h" | 4 | #include "dwm.h" |
| 5 | 5 | ||
| 6 | unsigned int master = MASTER; | ||
| 7 | unsigned int nmaster = NMASTER; | ||
| 8 | |||
| 6 | /* static */ | 9 | /* static */ |
| 7 | 10 | ||
| 8 | static void | 11 | static void |
| 9 | togglemax(Client *c) { | 12 | togglemax(Client *c) { |
| 10 | XEvent ev; | 13 | XEvent ev; |
| 11 | 14 | ||
| 12 | if(c->isfixed) | 15 | if(c->isfixed) |
| 13 | return; | 16 | return; |
| 14 | |||
| 15 | if((c->ismax = !c->ismax)) { | 17 | if((c->ismax = !c->ismax)) { |
| 16 | c->rx = c->x; | 18 | c->rx = c->x; |
| 17 | c->ry = c->y; | 19 | c->ry = c->y; |
