Hi
I have folowing problem, when i resize the window with bottom left
corner. Everything looks ok, but the frame (origin) has wrong
coordinates.
Mybe it's a bug in back in XGServerWidnow placeWindow
- (void) placewindow: (NSRect)rect : (int)win
{
...
if (NSEqualSizes(rect.size, frame.size) == NO)
{
resize = YES;
move = YES;
}
if (NSEqualPoints(rect.origin, frame.origin) == NO)
{
move = YES;
}
....
if (resize == YES)
{
NSDebugLLog(@"Moving", @"Fake size %d - %@", window->number,
NSStringFromSize(rect.size));
e = [NSEvent otherEventWithType: NSAppKitDefined
location: rect.origin
modifierFlags: 0
timestamp: 0
windowNumber: win
context: GSCurrentContext()
subtype: GSAppKitWindowResized
data1: rect.size.width
data2: rect.size.height];
[nswin sendEvent: e];
}
else if (move == YES)
{
NSDebugLLog(@"Moving", @"Fake move %d - %@", window->number,
NSStringFromPoint(rect.origin));
e = [NSEvent otherEventWithType: NSAppKitDefined
location: NSZeroPoint
modifierFlags: 0
timestamp: 0
windowNumber: win
context: GSCurrentContext()
subtype: GSAppKitWindowMoved
data1: rect.origin.x
data2: rect.origin.y];
[nswin sendEvent: e];
}
}
I think thath else if (move==YES) is wrong, because if i resize the
widow using bottom left resize bar corner, the window resize and moves,
but the frame origin position is not updated.
Can you repair thsi bug or tell me why it's done in this way? thanx