Only adjust position to allow for decorations when setting hints, not size.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@23401 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2006-09-06 13:53:02 +00:00
parent 1548f0617f
commit caf6538867

View file

@ -501,17 +501,12 @@ static void setWindowHintsForStyle (Display *dpy, Window window,
[self styleoffsets: &l : &r : &t : &b : style : win->ident];
/* WARNING: there was a comment here saying
* // 'When adding the frame here, we get X window errors!'
* x.size.width = o.size.width; // + l + r;
* x.size.height = o.size.height; // + t + b;
*
* but this seems to work OK for me after latest fixups in
* calculating offsets. Maybe we will get errors again and
* need to comment out the size modification once more.
/* WARNING: if we adjust the frame size we get problems,
* but we do seem to need to adjust the position to allow for
* decorations.
*/
x.size.width = o.size.width + l + r;
x.size.height = o.size.height + t + b;
x.size.width = o.size.width;
x.size.height = o.size.height;
x.origin.x = o.origin.x - l;
x.origin.y = o.origin.y - t;
NSDebugLLog(@"Frame", @"X2H %d, %x, %@, %@", win->number, style,