git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@21072 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2005-04-07 19:05:32 +00:00
parent e7fe51d887
commit 47ddc6186d
2 changed files with 18 additions and 3 deletions

View file

@ -1,3 +1,8 @@
2005-04-07 Fred Kiefer <FredKiefer@gmx.de>
* Source/x11/XGServerWindow.m (-iconSize): Use XFree to free
xiconsize. Fixes bug #12578.
2005-04-04 Richard Frith-Macdonald <rfm@gnu.org>
* Source/winlib/WIN32GState.m: tunr on alpha blending and swap colors

View file

@ -3028,6 +3028,7 @@ _computeDepth(int class, int bpp)
XIconSize *xiconsize;
int count_return;
int status;
NSSize iconSize;
status = XGetIconSizes(dpy,
DefaultRootWindow(dpy),
@ -3039,10 +3040,19 @@ _computeDepth(int class, int bpp)
{
/* must add 4 pixels for the border which windowmaker leaves out
but gnustep draws over. */
return NSMakeSize(xiconsize[0].max_width + 4,
iconSize = NSMakeSize(xiconsize[0].max_width + 4,
xiconsize[0].max_height + 4);
}
else
{
iconSize = NSMakeSize(xiconsize[0].max_width,
xiconsize[0].max_height);
}
XFree(xiconsize);
return iconSize;
}
return [super iconSize];
}