mirror of
https://github.com/gnustep/libs-back.git
synced 2025-04-22 07:21:02 +00:00
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:
parent
1548f0617f
commit
caf6538867
1 changed files with 5 additions and 10 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue