Revision: f44aeaa9d301
Branch: default
Author: Phillip Nguyen <
evil.p...@gmail.com>
Date: Mon Jan 7 19:39:53 2013
Log: Issue 624: set _mouse_in_window correctly when moving between
fullscreen and windowed mode.
http://code.google.com/p/pyglet/source/detail?r=f44aeaa9d301
Modified:
/pyglet/window/cocoa/__init__.py
=======================================
--- /pyglet/window/cocoa/__init__.py Sat Jun 23 12:49:37 2012
+++ /pyglet/window/cocoa/__init__.py Mon Jan 7 19:39:53 2013
@@ -179,8 +179,10 @@
self._nswindow.setLevel_(quartz.CGShieldingWindowLevel())
self.context.set_full_screen()
self._center_window()
+ self._mouse_in_window = True
else:
self._set_nice_window_location()
+ self._mouse_in_window = self._mouse_in_content_rect()
# Then create a view and set it as our NSWindow's content view.
self._nsview =
PygletView.alloc().initWithFrame_cocoaWindow_(content_rect, self)