Mercurial > dwindows
comparison mac/dw.m @ 1490:5393b56ec6d0
Autoposition code should only be run the first time on Mac, regardless of whether it was needed or not.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Sat, 24 Dec 2011 17:38:00 +0000 |
parents | 4c1c44af201a |
children | 1608c2a9c2b8 |
comparison
equal
deleted
inserted
replaced
1489:4c1c44af201a | 1490:5393b56ec6d0 |
---|---|
7616 point.x = defaultx; | 7616 point.x = defaultx; |
7617 /* Take into account menu bar and inverted Y */ | 7617 /* Take into account menu bar and inverted Y */ |
7618 point.y = cy - defaulty - (int)rect.size.height - 20; | 7618 point.y = cy - defaulty - (int)rect.size.height - 20; |
7619 | 7619 |
7620 [window setFrameOrigin:point]; | 7620 [window setFrameOrigin:point]; |
7621 [window setShown:YES]; | |
7622 } | 7621 } |
7622 [window setShown:YES]; | |
7623 } | 7623 } |
7624 [[window contentView] showWindow]; | 7624 [[window contentView] showWindow]; |
7625 [window makeKeyAndOrderFront:nil]; | 7625 [window makeKeyAndOrderFront:nil]; |
7626 } | 7626 } |
7627 return 0; | 7627 return 0; |