aboutsummaryrefslogtreecommitdiff
path: root/monsterwm.c
diff options
context:
space:
mode:
authorIvan Kanakarakis <ivan.kanak@gmail.com>2012-04-12 06:18:56 +0300
committerIvan Kanakarakis <ivan.kanak@gmail.com>2012-04-12 14:32:34 +0300
commit6f7fbe65b9f6b3223c5bb61cd9547e92e2a9d4fa (patch)
treed66b1e3ee06f9b9109098b9273f19e43d30e4320 /monsterwm.c
parent60148eed3aa976c8b2851f185bcee1f3a47ea2b4 (diff)
minor formatting change for the tenary operator
Diffstat (limited to 'monsterwm.c')
-rw-r--r--monsterwm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/monsterwm.c b/monsterwm.c
index d34469a..602dcaa 100644
--- a/monsterwm.c
+++ b/monsterwm.c
@@ -792,7 +792,7 @@ void switch_mode(const Arg *arg) {
/* tile all windows of current desktop - call the handler tiling function */
void tile(void) {
if (!head) return; /* nothing to arange */
- layout[head->next ? mode : MONOCLE](wh, TOP_PANEL ? PANEL_HEIGHT : 0);
+ layout[head->next ? mode:MONOCLE](wh, TOP_PANEL ? PANEL_HEIGHT:0);
}
/* windows that request to unmap should lose their
@@ -830,12 +830,12 @@ void update_current(client *c) {
int n = 0, fl = 0, ft = 0;
for (c = head; c; c = c->next, ++n) if (ISFFT(c)) { fl++; if (!c->isfullscrn) ft++; }
Window w[n];
- w[(current->isfloating||current->istransient) ? 0 : ft] = current->win;
+ w[(current->isfloating||current->istransient) ? 0:ft] = current->win;
for (fl += !ISFFT(current) ? 1:0, c = head; c; c = c->next) {
XSetWindowBorder(dis, c->win, c == current ? win_focus:win_unfocus);
XSetWindowBorderWidth(dis, c->win, (!head->next || c->isfullscrn
|| (mode == MONOCLE && !ISFFT(c))) ? 0:BORDER_WIDTH);
- if (c != current) w[c->isfullscrn ? --fl : ISFFT(c) ? --ft : --n] = c->win;
+ if (c != current) w[c->isfullscrn ? --fl:ISFFT(c) ? --ft:--n] = c->win;
}
XRestackWindows(dis, w, LENGTH(w));