Fix issue #41 (one win32 window receiving all other windows' messages)
Fix issue #41 (one win32 window receiving all other windows' messages)


Index: pyglet/window/win32/__init__.py
===================================================================
--- pyglet/window/win32/__init__.py	(revision 692)
+++ pyglet/window/win32/__init__.py	(working copy)
@@ -244,7 +244,7 @@
         if not self._window_class:
             white = _gdi32.GetStockObject(WHITE_BRUSH)
             self._window_class = WNDCLASS()
-            self._window_class.lpszClassName = 'GenericAppClass'
+            self._window_class.lpszClassName = 'GenericAppClass%d' % id(self)
             self._window_class.lpfnWndProc = WNDPROC(self._wnd_proc)
             self._window_class.style = CS_VREDRAW | CS_HREDRAW
             self._window_class.hInstance = 0

oktayacikalin/pyglet,mammadori/pyglet,mammadori/pyglet,mammadori/pyglet,theblacklion/pyglet,oktayacikalin/pyglet,theblacklion/pyglet,theblacklion/pyglet,theblacklion/pyglet,oktayacikalin/pyglet,mammadori/pyglet,oktayacikalin/pyglet,oktayacikalin/pyglet,theblacklion/pyglet