* 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 target value.
This commit is contained in:
Sergii Stoian 2020-02-24 01:20:54 +02:00
parent 230006323d
commit 4c9ca90eac
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2020-02-24 Sergii Stoian <stoyan255@gmail.com>
* 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 <stoyan255@gmail.com>
* Source/x11/XGServerWindow.m (screenList): Transform screen

View file

@ -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)