[beryl-commits] compiz mirror: Changes to 'master' (7bdb04de807dc83b624b52c4e41f15aa9ce49285)
compiz at server.beryl-project.org
compiz at server.beryl-project.org
Thu Jun 7 10:03:52 CEST 2007
New commits:
commit 7bdb04de807dc83b624b52c4e41f15aa9ce49285
Author: Danny Baumann <dannybaumann at web.de>
Date: Thu Jun 7 09:52:45 2007 +0200
Whitespace improvements.
plugins/scale.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
Modified: compiz/plugins/scale.c
===================================================================
--- compiz/plugins/scale.c
+++ compiz/plugins/scale.c
@@ -414,9 +414,9 @@ layoutSlotsForArea (CompScreen * s,
lines = sqrt (nWindows + 1);
spacing = ss->opt[SCALE_SCREEN_OPTION_SPACING].value.i;
+ nSlots = 0;
- nSlots = 0;
- y = workArea.y + spacing;
+ y = workArea.y + spacing;
height = (workArea.height - (lines + 1) * spacing) / lines;
for (i = 0; i < lines; i++)
@@ -424,7 +424,7 @@ layoutSlotsForArea (CompScreen * s,
n = MIN (nWindows - nSlots,
ceilf ((float)nWindows / lines));
- x = workArea.x + spacing;
+ x = workArea.x + spacing;
width = (workArea.width - (n + 1) * spacing) / n;
for (j = 0; j < n; j++)
@@ -483,6 +483,7 @@ getSlotAreas (CompScreen *s)
/* fill the areas with windows */
int nw = floor(size[i] / sizePerWindow);
nw = MIN (nw,left);
+
size[i] -= nw * sizePerWindow;
slotAreas[i].nWindows = nw;
left -= nw;
More information about the commits
mailing list