Sat Nov 6 11:31:11 PST 1999

(Mandrake)

minor ArrangeRects() param change.  updated all the source to use the new
params.  I have to write ArrangeRects() to do it right now, too.


SVN revision: 1192
This commit is contained in:
Mandrake 1999-11-06 09:56:10 +00:00
parent d30f90199c
commit 99367670eb
5 changed files with 21 additions and 8 deletions

View File

@ -3887,3 +3887,11 @@ Sat Nov 6 11:58:59 PST 1999
(Raster)
use no backing pixel for windows by default... :)
-------------------------------------------------------------------------------
Sat Nov 6 11:31:11 PST 1999
(Mandrake)
minor ArrangeRects() param change. updated all the source to use the new
params. I have to write ArrangeRects() to do it right now, too.

View File

@ -1467,7 +1467,7 @@ doCleanup(void *params)
k++;
}
ArrangeRects(fixed, k, floating, j, ret, root.w, root.h, method);
ArrangeRects(fixed, k, floating, j, ret, 0, 0, root.w, root.h, method);
for (i = 0; i < (j + k); i++)
{
if (ret[i].data)

View File

@ -73,8 +73,8 @@ ArrangeSwapList(RectBox * list, int a, int b)
void
ArrangeRects(RectBox * fixed, int fixed_count, RectBox * floating,
int floating_count, RectBox * sorted, int width, int height,
int policy)
int floating_count, RectBox * sorted, int startx, int starty,
int width, int height, int policy)
{
int num_sorted = 0;
int xsize = 0, ysize = 0;
@ -89,6 +89,9 @@ ArrangeRects(RectBox * fixed, int fixed_count, RectBox * floating,
int num_leftover = 0;
EDBUG(7, "ArrangeRects");
startx = 0;
starty = 0;
switch (policy)
{
case ARRANGE_VERBATIM:
@ -901,7 +904,7 @@ ArrangeEwin(EWin * ewin)
newrect.w = ewin->w;
newrect.h = ewin->h;
newrect.p = ewin->layer;
ArrangeRects(fixed, j, &newrect, 1, ret, root.w, root.h,
ArrangeRects(fixed, j, &newrect, 1, ret, 0, 0, root.w, root.h,
ARRANGE_BY_SIZE);
for (i = 0; i < j + 1; i++)
{

View File

@ -36,6 +36,7 @@ typedef struct _rectbox
}
RectBox;
void ArrangeRects(RectBox * fixed, int fixed_count, RectBox * floating,
int floating_count, RectBox * sorted, int width, int height,
int policy);
void ArrangeRects(RectBox * fixed, int fixed_count,
RectBox * floating, int floating_count,
RectBox * sorted, int startx, int starty,
int width, int height, int policy);

View File

@ -644,7 +644,8 @@ AddToFamily(Window win)
newrect.w = ewin->w;
newrect.h = ewin->h;
newrect.p = ewin->layer;
ArrangeRects(fixed, j, &newrect, 1, ret, root.w, root.h, ARRANGE_BY_SIZE);
ArrangeRects(fixed, j, &newrect, 1, ret, 0, 0, root.w, root.h,
ARRANGE_BY_SIZE);
for (i = 0; i < j + 1; i++)
{
if (ret[i].data == ewin)