kwin/plugins/qpa
Vlad Zahorodnii 6b2e6cfd53 Prevent EGL headers from including Xlib headers
One of the annoying things about EGL headers is that they include
platform headers by default, e.g. on X11, it's Xlib.h, etc.

The problem with Xlib.h is that it uses the define compiler directive to
declare constants and those constants have very generic names, e.g.
'None', which typically conflict with enums, etc.

In order to work around bad things coming from Xlib.h, we include
fixx11.h file that contains some workarounds to redefine some Xlib's
types.

There's a flag or rather two flags (EGL_NO_PLATFORM_SPECIFIC_TYPES and
EGL_NO_X11) that are cross-vendor and they can be used to prevent EGL
headers from including platform specific headers, such as Xlib.h [1]

The benefit of setting those two flags is that you can simply include
EGL/egl.h or epoxy/egl.h and the world won't explode due to Xlib.h

MESA_EGL_NO_X11_HEADERS is set to support older versions of Mesa.

[1] https://github.com/KhronosGroup/EGL-Registry/pull/111
2020-12-10 11:15:06 +02:00
..
backingstore.cpp
backingstore.h Prevent EGL headers from including Xlib headers 2020-12-10 11:15:06 +02:00
CMakeLists.txt Bundle QPA plugin directly 2020-11-22 17:52:14 +00:00
eglhelpers.cpp
eglhelpers.h Prevent EGL headers from including Xlib headers 2020-12-10 11:15:06 +02:00
eglplatformcontext.cpp qpa: Query various properties of the platform OpenGL context 2020-10-20 09:54:17 +00:00
eglplatformcontext.h Prevent EGL headers from including Xlib headers 2020-12-10 11:15:06 +02:00
integration.cpp plugins/qpa: Improve handling of output addition and removal 2020-12-09 17:44:00 +00:00
integration.h Prevent EGL headers from including Xlib headers 2020-12-10 11:15:06 +02:00
kwin.json
main.cpp
offscreensurface.cpp qpa: Merge OpenGL platform context classes 2020-10-13 05:32:48 +00:00
offscreensurface.h Prevent EGL headers from including Xlib headers 2020-12-10 11:15:06 +02:00
platformcursor.cpp
platformcursor.h
screen.cpp plugins/qpa: Improve handling of output addition and removal 2020-12-09 17:44:00 +00:00
screen.h plugins/qpa: Improve handling of output addition and removal 2020-12-09 17:44:00 +00:00
window.cpp qpa: Create a pbuffer for internal windows 2020-10-19 06:12:13 +00:00
window.h Prevent EGL headers from including Xlib headers 2020-12-10 11:15:06 +02:00