f5b66a583d
Summary: Depending on whether the underlying platform supports offscreen surfaces, QOffscreenSurface may create an invisible QWindow. In our case that's the case, for each offscreen surface a native window is created. This may lead to some funky results related to window decorations, see bug 407612. There are several ways to implement offscreen surfaces - either use pbuffers or utilize a surfaceless context extension. For the sake of simplicity this change sticks with pbuffers, but it's a good idea to support both methods. CCBUG: 407612 Reviewers: #kwin, romangg Reviewed By: #kwin, romangg Subscribers: romangg, alexeymin, kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D22150
43 lines
1.1 KiB
CMake
43 lines
1.1 KiB
CMake
include_directories(${Qt5Core_PRIVATE_INCLUDE_DIRS})
|
|
include_directories(${Qt5Gui_PRIVATE_INCLUDE_DIRS})
|
|
|
|
set(QPA_SOURCES
|
|
abstractplatformcontext.cpp
|
|
backingstore.cpp
|
|
eglhelpers.cpp
|
|
integration.cpp
|
|
main.cpp
|
|
nativeinterface.cpp
|
|
offscreensurface.cpp
|
|
platformcursor.cpp
|
|
screen.cpp
|
|
sharingplatformcontext.cpp
|
|
window.cpp
|
|
)
|
|
|
|
include(ECMQtDeclareLoggingCategory)
|
|
ecm_qt_declare_logging_category(QPA_SOURCES HEADER logging.h IDENTIFIER KWIN_QPA CATEGORY_NAME kwin_qpa_plugin DEFAULT_SEVERITY Critical)
|
|
|
|
add_library(KWinQpaPlugin MODULE ${QPA_SOURCES})
|
|
set_target_properties(KWinQpaPlugin PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin/platforms/")
|
|
|
|
set(QT5PLATFORMSUPPORT_LIBS
|
|
Qt5FontDatabaseSupport::Qt5FontDatabaseSupport
|
|
Qt5ThemeSupport::Qt5ThemeSupport
|
|
Qt5EventDispatcherSupport::Qt5EventDispatcherSupport
|
|
)
|
|
|
|
target_link_libraries(KWinQpaPlugin
|
|
kwin
|
|
KF5::WaylandClient
|
|
${QT5PLATFORMSUPPORT_LIBS}
|
|
Fontconfig::Fontconfig
|
|
${FREETYPE_LIBRARIES}
|
|
)
|
|
|
|
install(
|
|
TARGETS
|
|
KWinQpaPlugin
|
|
DESTINATION
|
|
${PLUGIN_INSTALL_DIR}/platforms/
|
|
)
|