I am trying to investigate the math issues facing GNUStep layout system when
GSScale is set to something non-1. I am trying to account for all the math that
layouts the contentView (I have been looking into both GSDecorationView and
NSWindow) . Just a couple questions:
1) In NSWindow.m, line 1122, is there a reason 1 is added?
_minimumSize = NSMakeSize(_frame.size.width - contentRect.size.width + 1,
_frame.size.height - contentRect.size.height + 1);
2) Where is styleoffsets defined? I see on line 793 in GSDisplaySever.m the
following
- (void) styleoffsets: (float*) l : (float*) r : (float*) t : (float*) b
: (unsigned int) style
{
[self subclassResponsibility: _cmd];
}
My hunch is that when GSWindowDecoration view calls this [GSCurrentServer()
styleoffsets: l : r : t : b : style]; on line 588, it needs to multiple the
results by the scale factor?
Because the content is currently shifted by a combination of the GSFactor and
title bar height (which I am changing in the Defaults) to confirm that these
are the factors that is creating the offset.