mirror of
https://github.com/gnustep/libs-back.git
synced 2025-02-24 04:11:28 +00:00
Merge pull request #22 from gnustep/randr
Window positionning: rely on internal variable not the GUI's one
This commit is contained in:
commit
983035a7a6
2 changed files with 8 additions and 2 deletions
|
@ -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-21 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Source/x11/XGServerWindow.m (-_createAppIconPixmaps): Made
|
||||
|
|
|
@ -3234,8 +3234,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)
|
||||
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue