Skip to content

Commit

Permalink
Enabled the new decoration blurring of KWin
Browse files Browse the repository at this point in the history
  • Loading branch information
tsujan committed Aug 23, 2022
1 parent 2d10406 commit e9235c9
Show file tree
Hide file tree
Showing 15 changed files with 245 additions and 78 deletions.
22 changes: 12 additions & 10 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules")
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR} ${CMAKE_SOURCE_DIR}/cmake)

set(QT_MIN_VERSION "5.15.0")
set(KF5_MIN_VERSION "5.82")
set(KF5_MIN_VERSION "5.90")

include(ECMInstallIcons)
include(KDEInstallDirs)
Expand All @@ -33,7 +33,7 @@ add_definitions(-DTRANSLATION_DOMAIN="breeze_kwin_deco")

#find_package(KF5 REQUIRED COMPONENTS CoreAddons GuiAddons ConfigWidgets WindowSystem I18n IconThemes)
find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS CoreAddons GuiAddons ConfigWidgets WindowSystem I18n)
find_package(Qt5 ${QT_MIN_VERSION} CONFIG REQUIRED COMPONENTS DBus)
find_package(Qt${QT_MAJOR_VERSION} ${QT_MIN_VERSION} CONFIG REQUIRED COMPONENTS DBus)

### XCB
find_package(XCB COMPONENTS XCB)
Expand All @@ -47,7 +47,7 @@ set_package_properties(XCB PROPERTIES
if(UNIX AND NOT APPLE)

set(BREEZE_HAVE_X11 ${XCB_XCB_FOUND})
if (XCB_XCB_FOUND)
if (XCB_XCB_FOUND AND TARGET Qt5::Core)
find_package(Qt5 REQUIRED CONFIG COMPONENTS X11Extras)
endif()

Expand Down Expand Up @@ -117,14 +117,16 @@ target_link_libraries(breezeenhanced
KF5::WindowSystem)

if(BREEZE_HAVE_X11)
target_link_libraries(breezeenhanced
PUBLIC
Qt::X11Extras
XCB::XCB)
target_link_libraries(breezeenhanced PUBLIC XCB::XCB)
if (TARGET Qt5::X11Extras)
target_link_libraries(breezeenhanced PUBLIC Qt5::X11Extras)
else ()
target_link_libraries(breezeenhanced PUBLIC Qt6::GuiPrivate)
endif()
endif()


install(TARGETS breezeenhanced DESTINATION ${KDE_INSTALL_PLUGINDIR}/org.kde.kdecoration2)
install(FILES config/breezeenhancedconfig.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR})
# install(TARGETS breezedecoration DESTINATION ${PLUGIN_INSTALL_DIR}/org.kde.kdecoration2)
# install(FILES config/breezedecorationconfig.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR})
install(FILES config/breezeenhancedconfig.desktop DESTINATION ${KDE_INSTALL_KSERVICESDIR})
#install(TARGETS breezedecoration DESTINATION ${KDE_INSTALL_PLUGINDIR}/org.kde.kdecoration2)
#install(FILES config/breezedecorationconfig.desktop DESTINATION ${KDE_INSTALL_KSERVICESDIR})
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
V5.25
---------
* Enabled the new decoration blurring of KWin (without "blur glitches").

V5.24
---------
* Bumped the version to 5.24 and silenced compilation warnings.
Expand Down
2 changes: 1 addition & 1 deletion NEWS
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Latest version:

22 Feb 2022, V5.24
24 Aug 2022, V5.25

See "ChangeLog" for changes.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ Needless to say, the main work behind BreezeEnhanced is the Breeze KWin decorati

The version number in the file [NEWS](NEWS) shows the main version of KWin that is required for the compilation. *Compilation should not be done against other versions of KWin!*

In what follows, it is supposed that the name of the installation directory of KDE libraries is `lib` and the installation prefix is `/usr`. If they are different in your distro, please replace them!

Open a terminal inside the source directory and do:
```sh
mkdir build && cd build
Expand Down
Loading

0 comments on commit e9235c9

Please sign in to comment.