[pyglet] push by useboxnet - Only set the mouse visible/hidden if there's a window... on 2014-05-19 16:16 GMT

2 views
Skip to first unread message

pyg...@googlecode.com

unread,
May 19, 2014, 12:16:51 PM5/19/14
to pyglet-...@googlegroups.com
Revision: dfee8be9740e
Branch: default
Author: Juan J. Martínez <j...@usebox.net>
Date: Mon May 19 16:14:57 2014 UTC
Log: Only set the mouse visible/hidden if there's a window

Fixes issue #739.
http://code.google.com/p/pyglet/source/detail?r=dfee8be9740e

Modified:
/pyglet/window/xlib/__init__.py

=======================================
--- /pyglet/window/xlib/__init__.py Sun Dec 15 17:27:26 2013 UTC
+++ /pyglet/window/xlib/__init__.py Mon May 19 16:14:57 2014 UTC
@@ -596,6 +596,8 @@
'_NET_WM_STATE_MAXIMIZED_VERT')

def set_mouse_platform_visible(self, platform_visible=None):
+ if not self._window:
+ return
if platform_visible is None:
platform_visible = self._mouse_visible and \
not self._mouse_cursor.drawable
Reply all
Reply to author
Forward
0 new messages