-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix coding style within layout files
Signed-off-by: Marc Andre Tanner <[email protected]>
- Loading branch information
Showing
6 changed files
with
95 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,57 +1,57 @@ | ||
static void | ||
bstack(void) { | ||
static void bstack(void) | ||
{ | ||
unsigned int i, m, n, nx, ny, nw, nh, mh, tw; | ||
Client *c; | ||
|
||
for(n = 0, m = 0, c = clients; c; c = c->next, n++) | ||
if(c->minimized) | ||
for (n = 0, m = 0, c = clients; c; c = c->next, n++) | ||
if (c->minimized) | ||
m++; | ||
|
||
if(n == 1) | ||
if (n == 1) | ||
mh = wah; | ||
else if(n - 1 == m) | ||
else if (n - 1 == m) | ||
mh = wah - m; | ||
else | ||
mh = screen.mfact * (wah - m); | ||
/* true if there are at least 2 non minimized clients */ | ||
if(n - 1 > m) | ||
if (n - 1 > m) | ||
tw = waw / (n - m - 1); | ||
|
||
nx = wax; | ||
ny = way; | ||
for(i = 0, c = clients; c; c = c->next, i++){ | ||
if(i == 0){ /* master */ | ||
for (i = 0, c = clients; c; c = c->next, i++) { | ||
if (i == 0) { /* master */ | ||
nh = mh; | ||
nw = waw; | ||
} else { /* tile window */ | ||
if(i == 1){ | ||
} else { /* tile window */ | ||
if (i == 1) { | ||
nx = wax; | ||
ny += mh; | ||
nh = (way + wah - m) - ny; | ||
} | ||
if(i == n - m - 1){ /* last not minimized client */ | ||
if (i == n - m - 1) { /* last not minimized client */ | ||
nw = (wax + waw) - nx; | ||
} else if(i == n - m){ /* first minimized client */ | ||
} else if (i == n - m) { /* first minimized client */ | ||
ny += nh; | ||
nx = wax; | ||
nw = waw; | ||
nh = 1; | ||
} else if(c->minimized) { /* minimized window */ | ||
} else if (c->minimized) { /* minimized window */ | ||
nw = waw; | ||
nh = 1; | ||
ny++; | ||
} else /* normal non minimized tile window */ | ||
} else /* normal non minimized tile window */ | ||
nw = tw; | ||
if(i > 1 && !c->minimized){ | ||
if (i > 1 && !c->minimized) { | ||
mvvline(ny, nx, ACS_VLINE, nh); | ||
mvaddch(ny, nx, ACS_TTEE); | ||
nx++, nw--; | ||
} | ||
} | ||
|
||
resize(c,nx,ny,nw,nh); | ||
resize(c, nx, ny, nw, nh); | ||
|
||
if(n > 1 && i < n - m - 1) | ||
if (n > 1 && i < n - m - 1) | ||
nx += nw; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
static void | ||
fullscreen(void) { | ||
Client *c; | ||
for(c = clients; c; c = c->next) | ||
static void fullscreen(void) | ||
{ | ||
for (Client *c = clients; c; c = c->next) | ||
resize(c, wax, way, waw, wah); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.