diff --git a/Source/x11/XGServerWindow.m b/Source/x11/XGServerWindow.m index a891dac..81be6b0 100644 --- a/Source/x11/XGServerWindow.m +++ b/Source/x11/XGServerWindow.m @@ -3234,7 +3234,6 @@ swapColors(unsigned char *image_data, NSBitmapImageRep *rep) NSDebugLLog(@"XGTrace", @"DPSplacewindow: %@ : %d", NSStringFromRect(rect), win); - nswin = GSWindowWithNumber(win); frame = [self _XFrameToOSFrame: window->xframe for: window]; if (NSEqualRects(rect, frame) == YES) return; @@ -3285,6 +3284,7 @@ swapColors(unsigned char *image_data, NSBitmapImageRep *rep) with min/max sizes and resizability in some window managers. */ setNormalHints(dpy, window); + nswin = GSWindowWithNumber(win); if (resize == YES) { NSDebugLLog(@"Moving", @"Fake size %lu - %@", window->number,