diff --git a/ChangeLog b/ChangeLog index 48e636a..ff60f24 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2020-02-24 Sergii Stoian + + * Source/x11/XGServerWindow.m (placewindow::): use window->xframe + as current window frame instead of NSWindow's frame because + `_frame` ivar may be already changed to desired value. + 2020-02-11 Sergii Stoian * Source/x11/XGServerWindow.m (screenList): Transform screen diff --git a/Source/x11/XGServerWindow.m b/Source/x11/XGServerWindow.m index 842d1bb..2fc24f8 100644 --- a/Source/x11/XGServerWindow.m +++ b/Source/x11/XGServerWindow.m @@ -3219,7 +3219,7 @@ swapColors(unsigned char *image_data, NSBitmapImageRep *rep) NSDebugLLog(@"XGTrace", @"DPSplacewindow: %@ : %d", NSStringFromRect(rect), win); nswin = GSWindowWithNumber(win); - frame = [nswin frame]; + frame = [self _XFrameToOSFrame: window->xframe for: window]; if (NSEqualRects(rect, frame) == YES) return; if (NSEqualSizes(rect.size, frame.size) == NO)