google-code-export / pyglet

Automatically exported from code.google.com/p/pyglet
BSD 3-Clause "New" or "Revised" License
1 stars 1 forks source link

Window doesn't close on close in Windows #540

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.  Run a pyglet app in Windows.
2.  Close the window via X button in upper-right, ALT+F4, or the context menu 
in the upper-left.
3.  The window does not close.

The problem is in the latest change to /pyglet/window/__init__.py in this 
commit:

http://code.google.com/p/pyglet/source/detail?r=a987fa122ecfd862010fa6cb7de849d6
aab7a1a9

When I debug to the on_close event in PyCharm, 
app.platform_event_loop.is_running() returns False, so self.close() is not 
called.  `app.event_loop` is not None.

Original issue reported on code.google.com by mikejohn...@gmail.com on 2 Nov 2011 at 11:46

GoogleCodeExporter commented 9 years ago
with win32 bits and ati radeon 4650 with drivers ati catalyst 11.5 I don't see 
this bad behavior, not in apps nor in the tests.

But running the tests with the current (ati catalyst 11.9) drivers there were 
unclosed windows.

Original comment by ccanepacc@gmail.com on 5 Nov 2011 at 9:36