mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-24 00:25:26 +00:00
[Mac] Window should be invisible on startup
Also fixes the initial position of the window.
This commit is contained in:
parent
ef4cfbdd4b
commit
acb7dd27a7
|
@ -179,8 +179,8 @@ namespace OpenTK.Platform.MacOS
|
|||
|
||||
// Set up behavior
|
||||
Cocoa.SendIntPtr(windowPtr, Selector.Get("setDelegate:"), windowPtr); // The window class acts as its own delegate
|
||||
Cocoa.SendVoid(windowPtr, Selector.Get("cascadeTopLeftFromPoint:"), new System.Drawing.PointF(20, 20));
|
||||
Cocoa.SendVoid(windowPtr, Selector.Get("makeKeyAndOrderFront:"), IntPtr.Zero);
|
||||
Cocoa.SendVoid(windowPtr, Selector.Get("cascadeTopLeftFromPoint:"), System.Drawing.PointF.Empty);
|
||||
Cocoa.SendVoid(windowPtr, Selector.Get("makeKeyWindow"));
|
||||
SetTitle(title, false);
|
||||
|
||||
ResetTrackingArea();
|
||||
|
|
Loading…
Reference in a new issue