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

Turn on full-screen mode, then turn off, unable to update graphics #700

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Pyglet 1.1.4

What steps will reproduce the problem?
1. Run app
2. Turn on full-screen mode, then turn off
3. Graphics not updating

Original issue reported on code.google.com by b.d.de...@gmail.com on 12 Jan 2014 at 11:08

Attachments:

GoogleCodeExporter commented 9 years ago
Can you repeat the test using the repository code?

You can download it from:

https://pyglet.googlecode.com/archive/tip.zip

Original comment by useboxnet on 12 Jan 2014 at 11:43

GoogleCodeExporter commented 9 years ago

Original comment by useboxnet on 12 Jan 2014 at 11:43

GoogleCodeExporter commented 9 years ago
The same thing happened, but this time graphics updates after turning of 
full-screen and turning it on again.

Original comment by b.d.de...@gmail.com on 12 Jan 2014 at 12:18

GoogleCodeExporter commented 9 years ago
Thanks for the update!

Can you tell us what operating system are you using? Also knowing the exact 
python version would be helpful.

Original comment by useboxnet on 12 Jan 2014 at 12:20

GoogleCodeExporter commented 9 years ago
I'm using kubuntu 12.04 and python 2.7.3.
Also, I've just noticed that graphics updates after exiting full-screen, if 
window is resized.

Original comment by b.d.de...@gmail.com on 12 Jan 2014 at 12:27

GoogleCodeExporter commented 9 years ago
I wonder if it is related to the compositor (kwin?) and its redirection.

I added a patch to improve that kind of issue, but it won't work with 12.04 
versions:

https://code.google.com/p/pyglet/source/detail?r=b56e56c2542e3d6831bfcfe64012459
cc8d9f75a

You can try adding just after `pyglet import`, just to see if it makes any 
difference:

pyglet.options['xlib_fullscreen_override_redirect'] = True

fullscreen has always been tricky in X11, with composite managers things only 
got worse!

Thanks for your report.

Original comment by useboxnet on 12 Jan 2014 at 12:34

GoogleCodeExporter commented 9 years ago
Feel free to reopen the issue if you can provide more information.

Original comment by useboxnet on 20 Jun 2014 at 7:27