1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-28 02:30:05 +00:00
JUCE/modules/juce_opengl/native
reuk a31a4dc5f7
X11: Ensure repainting still works after destorying a GL context
On Linux, repaints are only issued if the number of received SHM
completion events matches the number of events initiated with
`xShmPutImage`.

Previously, destroying a GL context was calling `XSync (display, True)`
which cleared the event queue. Sometimes, this would cause an 'SHM
Completion Event' to be removed from the queue. This meant that the
number of received events would never match the number of initiated
events, and repainting would stop indefinitely.

By calling `XSync (display, False)` instead, we ensure that pending
events are kept in the queue, so any pending SHM completion event will
be found as usual during the next repaint timer callback.
2021-02-18 11:46:48 +00:00
..
java/app/com/rmsl/juce Updated all license headers 2020-06-29 08:30:22 +01:00
juce_MissingGLDefinitions.h Updated all license headers 2020-06-29 08:30:22 +01:00
juce_OpenGL_android.h Replaced deprecated Displays methods 2020-10-27 12:38:59 +00:00
juce_OpenGL_ios.h Replaced deprecated Displays methods 2020-10-27 12:38:59 +00:00
juce_OpenGL_linux_X11.h X11: Ensure repainting still works after destorying a GL context 2021-02-18 11:46:48 +00:00
juce_OpenGL_osx.h Narrowed the scoped of some undeclared Objective-C selector warnings 2020-12-10 12:48:42 +00:00
juce_OpenGL_win32.h Updated all license headers 2020-06-29 08:30:22 +01:00
juce_OpenGLExtensions.h Updated all license headers 2020-06-29 08:30:22 +01:00