Commits

Phillip Nguyen  committed f44aeaa

Issue 624: set _mouse_in_window correctly when moving between fullscreen and windowed mode.

  • Participants
  • Parent commits a1644a4

Comments (0)

Files changed (1)

File pyglet/window/cocoa/__init__.py

             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)