[pyglet] push by evil.phillip@gmail.com - Issue 624: set _mouse_in_window correctly when moving between fullscre... on 2013-01-08 03:40 GMT

3 views
Skip to first unread message

pyg...@googlecode.com

unread,
Jan 7, 2013, 10:40:33 PM1/7/13
to pyglet-...@googlegroups.com
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)
Reply all
Reply to author
Forward
0 new messages