From 34c93a5124b29671d9729e7102f6215535abf8f8 Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Mon, 2 Jul 2012 15:24:02 +0200 Subject: [PATCH] Disabled window restoration on Cocoa. --- readme.html | 4 ++++ src/cocoa_window.m | 3 +++ 2 files changed, 7 insertions(+) diff --git a/readme.html b/readme.html index 63334b67..faf6a52e 100644 --- a/readme.html +++ b/readme.html @@ -334,6 +334,7 @@ version of GLFW.

  • [Cocoa] Bugfix: The GLFW_WINDOW_NO_RESIZE window parameter was always zero
  • [Cocoa] Bugfix: The cursor position incorrectly rounded during conversion
  • [Cocoa] Bugfix: Cursor positioning led to nonsensical results for fullscreen windows
  • +
  • [Cocoa] Bugfix: The GLFW window was flagged as restorable
  • [X11] Added support for the GLX_EXT_swap_control extension as an alternative to GLX_SGI_swap_control
  • [X11] Added the POSIX CLOCK_MONOTONIC time source as the preferred method
  • [X11] Added dependency on libm, where present
  • @@ -895,6 +896,9 @@ their skills. Special thanks go out to:

  • Glenn Lewis, for helping out with support for the D programming language
  • +
  • Shane Liesegang, for providing a bug fix relating to Cocoa window + restoration
  • +
  • Tristam MacDonald, for his bug reports and feedback on the Cocoa port
  • Hans 'Hanmac' Mackowiak, for the initial implementation of cursor diff --git a/src/cocoa_window.m b/src/cocoa_window.m index 233075a9..3523806a 100644 --- a/src/cocoa_window.m +++ b/src/cocoa_window.m @@ -693,6 +693,9 @@ static GLboolean createWindow(_GLFWwindow* window, [window->NS.object setAcceptsMouseMovedEvents:YES]; [window->NS.object center]; + if ([window->NS.object respondsToSelector:@selector(setRestorable)]) + [window->NS.object setRestorable:NO]; + return GL_TRUE; }