Tk Source Code

Check-in [30856df3]
Login
Bounty program for improvements to Tcl and certain Tcl packages.
Tcl 2019 Conference, Houston/TX, US, Nov 4-8
Send your abstracts to [email protected]
or submit via the online form by Sep 9.

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Final tweak for OS X wm crash, thanks to Marc Culler
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | core-8-6-branch
Files: files | file ages | folders
SHA1: 30856df36f2eaf82a42adb3968cbefe3c1c83653
User & Date: kevin_walzer 2016-07-19 23:48:19
References
2017-09-25
20:30 Closed ticket [3608963f]: Crash on MoutainLion with negative offset to wm geometry plus 6 other changes artifact: fc097acb user: fvogel
Context
2016-07-26
09:30
Fixed [5660d11c3f] - text tag -background option overrules -lmargincolor check-in: 316b16bd user: fvogel tags: tip-443, bug-5660d11c3f
2016-07-22
12:40
merge mark check-in: 8219b837 user: dgp tags: trunk
2016-07-21
20:08
[450bb0ecad] Fix corruption [tk busy] creates on OSX. check-in: d3a347d2 user: dgp tags: core-8-6-branch
20:06
merge 8.6 Closed-Leaf check-in: 0cb77e7f user: dgp tags: bug-450bb0ecad
2016-07-19
23:48
Final tweak for OS X wm crash, thanks to Marc Culler check-in: 30856df3 user: kevin_walzer tags: core-8-6-branch
2016-07-17
03:19
Fix for Ticket c84f660833546b1b84e7fd3aef930c2f17207461 (Tk crashes when toplevel placed on second display, Mac); thanks to Marc Culler for patch check-in: 0dff4e5f user: kevin_walzer tags: core-8-6-branch
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to macosx/tkMacOSXSubwindows.c.

364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
	    CGFloat X = (CGFloat)x;
	    CGFloat Y = (CGFloat)y;
	    CGFloat Width = (CGFloat)width;
	    CGFloat Height = (CGFloat)height;
	    CGFloat XOff = (CGFloat)macWin->winPtr->wmInfoPtr->xInParent; 
	    CGFloat YOff = (CGFloat)macWin->winPtr->wmInfoPtr->yInParent;
	    NSRect r = NSMakeRect(X + XOff,
	    			  tkMacOSXZeroScreenHeight - Y - YOff,
	    			  Width, Height);
	    [w setFrame:[w frameRectForContentRect:r] display:YES];
	}
    } else {
	MoveResizeWindow(macWin);
    }
}






|







364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
	    CGFloat X = (CGFloat)x;
	    CGFloat Y = (CGFloat)y;
	    CGFloat Width = (CGFloat)width;
	    CGFloat Height = (CGFloat)height;
	    CGFloat XOff = (CGFloat)macWin->winPtr->wmInfoPtr->xInParent; 
	    CGFloat YOff = (CGFloat)macWin->winPtr->wmInfoPtr->yInParent;
	    NSRect r = NSMakeRect(X + XOff,
	    			  tkMacOSXZeroScreenHeight - Y - YOff - Height,
	    			  Width, Height);
	    [w setFrame:[w frameRectForContentRect:r] display:YES];
	}
    } else {
	MoveResizeWindow(macWin);
    }
}