[declarativeimports/core] Specify HAVE_XCB_COMPOSITE in config-x11.h

This commit is contained in:
Martin Gräßlin 2015-11-06 10:34:52 +01:00
parent 286300ad35
commit fae8384845
3 changed files with 4 additions and 2 deletions

View File

@ -1,7 +1,7 @@
if(HAVE_X11 AND XCB_XCB_FOUND AND XCB_COMPOSITE_FOUND AND XCB_DAMAGE_FOUND)
add_definitions(-DHAVE_XCB_COMPOSITE=1)
set(HAVE_XCB_COMPOSITE TRUE)
else()
add_definitions(-DHAVE_XCB_COMPOSITE=0)
set(HAVE_XCB_COMPOSITE FALSE)
endif()
configure_file(config-x11.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-x11.h)

View File

@ -1 +1,2 @@
#cmakedefine01 HAVE_X11
#cmakedefine01 HAVE_XCB_COMPOSITE

View File

@ -19,6 +19,7 @@
#ifndef PLASMA_WINDOWTHUMBNAIL_H
#define PLASMA_WINDOWTHUMBNAIL_H
#include <config-plasma.h>
#include <config-x11.h>
#include <cstdint>