Disabled window restoration on Cocoa.

This commit is contained in:
Camilla Berglund 2012-07-02 15:24:02 +02:00
parent e7c4e77214
commit 34c93a5124
2 changed files with 7 additions and 0 deletions

View File

@ -334,6 +334,7 @@ version of GLFW.</p>
<li>[Cocoa] Bugfix: The <code>GLFW_WINDOW_NO_RESIZE</code> window parameter was always zero</li> <li>[Cocoa] Bugfix: The <code>GLFW_WINDOW_NO_RESIZE</code> window parameter was always zero</li>
<li>[Cocoa] Bugfix: The cursor position incorrectly rounded during conversion</li> <li>[Cocoa] Bugfix: The cursor position incorrectly rounded during conversion</li>
<li>[Cocoa] Bugfix: Cursor positioning led to nonsensical results for fullscreen windows</li> <li>[Cocoa] Bugfix: Cursor positioning led to nonsensical results for fullscreen windows</li>
<li>[Cocoa] Bugfix: The GLFW window was flagged as restorable</li>
<li>[X11] Added support for the <code>GLX_EXT_swap_control</code> extension as an alternative to <code>GLX_SGI_swap_control</code></li> <li>[X11] Added support for the <code>GLX_EXT_swap_control</code> extension as an alternative to <code>GLX_SGI_swap_control</code></li>
<li>[X11] Added the POSIX <code>CLOCK_MONOTONIC</code> time source as the preferred method</li> <li>[X11] Added the POSIX <code>CLOCK_MONOTONIC</code> time source as the preferred method</li>
<li>[X11] Added dependency on libm, where present</li> <li>[X11] Added dependency on libm, where present</li>
@ -895,6 +896,9 @@ their skills. Special thanks go out to:</p>
<li>Glenn Lewis, for helping out with support for the D programming <li>Glenn Lewis, for helping out with support for the D programming
language</li> language</li>
<li>Shane Liesegang, for providing a bug fix relating to Cocoa window
restoration</li>
<li>Tristam MacDonald, for his bug reports and feedback on the Cocoa port</li> <li>Tristam MacDonald, for his bug reports and feedback on the Cocoa port</li>
<li>Hans 'Hanmac' Mackowiak, for the initial implementation of cursor <li>Hans 'Hanmac' Mackowiak, for the initial implementation of cursor

View File

@ -693,6 +693,9 @@ static GLboolean createWindow(_GLFWwindow* window,
[window->NS.object setAcceptsMouseMovedEvents:YES]; [window->NS.object setAcceptsMouseMovedEvents:YES];
[window->NS.object center]; [window->NS.object center];
if ([window->NS.object respondsToSelector:@selector(setRestorable)])
[window->NS.object setRestorable:NO];
return GL_TRUE; return GL_TRUE;
} }