Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:junknot
lxqt-session
optional-wayland.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File optional-wayland.patch of Package lxqt-session
diff -ruN lxqt-session-2.0.0/CMakeLists.txt lxqt-session-2.0.0.optional-wayland/CMakeLists.txt --- lxqt-session-2.0.0/CMakeLists.txt 2024-04-17 07:22:25.000000000 -0400 +++ lxqt-session-2.0.0.optional-wayland/CMakeLists.txt 2024-09-12 23:45:10.765714017 -0400 @@ -32,7 +32,7 @@ find_package(lxqt ${LXQT_MINIMUM_VERSION} REQUIRED) find_package(qtxdg-tools ${QTXDG_MINIMUM_VERSION} REQUIRED) find_package(X11 REQUIRED) -find_package(LayerShellQt ${SHELLQT_MINIMUM_VERSION} REQUIRED) +find_package(LayerShellQt ${SHELLQT_MINIMUM_VERSION}) message(STATUS "Building with Qt${Qt6Core_VERSION}") find_package(PkgConfig REQUIRED) if (CMAKE_SYSTEM_NAME STREQUAL "Linux") diff -ruN lxqt-session-2.0.0/lxqt-leave/CMakeLists.txt lxqt-session-2.0.0.optional-wayland/lxqt-leave/CMakeLists.txt --- lxqt-session-2.0.0/lxqt-leave/CMakeLists.txt 2024-04-17 07:22:25.000000000 -0400 +++ lxqt-session-2.0.0.optional-wayland/lxqt-leave/CMakeLists.txt 2024-09-12 23:46:13.151482818 -0400 @@ -53,8 +53,13 @@ target_link_libraries(lxqt-leave lxqt - LayerShellQtInterface ) +if(LAYERSHELLQT_FOUND) + add_definitions(-DUSE_LAYERSHELLQT) + target_link_libraries(lxqt-leave + LayerShellQtInterface + ) +endif() install(TARGETS lxqt-leave diff -ruN lxqt-session-2.0.0/lxqt-leave/leavedialog.cpp lxqt-session-2.0.0.optional-wayland/lxqt-leave/leavedialog.cpp --- lxqt-session-2.0.0/lxqt-leave/leavedialog.cpp 2024-04-17 07:22:25.000000000 -0400 +++ lxqt-session-2.0.0.optional-wayland/lxqt-leave/leavedialog.cpp 2024-09-12 21:22:01.573832376 -0400 @@ -34,8 +34,10 @@ #include <QWindow> #include <QShowEvent> +#ifdef USE_LAYERSHELLQT #include <LayerShellQt/shell.h> #include <LayerShellQt/window.h> +#endif LeaveDialog::LeaveDialog(QWidget* parent) @@ -136,6 +138,7 @@ void LeaveDialog::showEvent(QShowEvent *event) { +#ifdef USE_LAYERSHELLQT // set the layer and centered position under Wayland if (QGuiApplication::platformName() == QStringLiteral("wayland")) { @@ -161,5 +164,6 @@ } } } +#endif // USE_LAYERSHELLQT QDialog::showEvent(event); }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor