kwin/plugins
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
..
colord-integration Re-initialize colord integration when colord daemon is restarted 2020-11-26 20:28:08 +00:00
idletime Consistently name some KF5 integration plugins 2020-11-23 16:44:42 +00:00
kdecorations Trim trailing whitespace 2020-11-28 11:01:47 +00:00
kglobalaccel Consistently name some KF5 integration plugins 2020-11-23 16:44:42 +00:00
kpackage SVN_SILENT made messages (.desktop file) - always resolve ours 2020-09-30 06:16:48 +02:00
krunner-integration SVN_SILENT made messages (.desktop file) - always resolve ours 2020-12-05 06:33:37 +01:00
nightcolor Convert Night Color into a plugin 2020-11-27 18:55:01 +00:00
platforms Prevent EGL headers from including Xlib headers 2020-12-10 11:15:06 +02:00
qpa Prevent EGL headers from including Xlib headers 2020-12-10 11:15:06 +02:00
scenes Provide expected presentation time to effects 2020-12-10 07:14:42 +00:00
screencast Prevent EGL headers from including Xlib headers 2020-12-10 11:15:06 +02:00
windowsystem Consistently name some KF5 integration plugins 2020-11-23 16:44:42 +00:00
CMakeLists.txt Convert Night Color into a plugin 2020-11-27 18:55:01 +00:00