425
425
PrivateScaleScreen::layoutSlotsForArea (const CompRect& workArea,
440
438
y = workArea.y () + spacing;
441
439
height = (workArea.height () - (lines + 1) * spacing) / lines;
445
443
n = MIN (nWindows - nSlots, ceilf ((float) nWindows / lines));
447
445
x = workArea.x () + spacing;
448
446
width = (workArea.width () - (n + 1) * spacing) / n;
452
450
slots[this->nSlots].setGeometry (x, y, width, height);