Skip to content

Commit

Permalink
Remove KX11Extras and KWindowSystem
Browse files Browse the repository at this point in the history
  • Loading branch information
matinlotfali committed Jan 15, 2024
1 parent 037ae3f commit 65225f7
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 17 deletions.
1 change: 0 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ find_package(KF${QT_VERSION_MAJOR} ${KF_MIN_VERSION} REQUIRED COMPONENTS
ConfigWidgets
CoreAddons
GlobalAccel
WindowSystem
)
if(${QT_VERSION_MAJOR} EQUAL 6)
find_package(KF${QT_VERSION_MAJOR} ${KF_MIN_VERSION} REQUIRED COMPONENTS
Expand Down
1 change: 0 additions & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ target_link_libraries(kwin4_effect_shapecorners
KF${QT_VERSION_MAJOR}::ConfigCore
KF${QT_VERSION_MAJOR}::ConfigGui
KF${QT_VERSION_MAJOR}::CoreAddons
KF${QT_VERSION_MAJOR}::WindowSystem
)
if(${QT_VERSION_MAJOR} EQUAL 6)
target_link_libraries(kwin4_effect_shapecorners
Expand Down
16 changes: 2 additions & 14 deletions src/ShapeCornersEffect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,6 @@
#include <kwinglutils.h>
#endif

#if KWIN_EFFECT_API_VERSION >= 235
#include <KX11Extras>
#else
#include <kwindowsystem.h>
#endif

ShapeCornersEffect::ShapeCornersEffect()
#if KWIN_EFFECT_API_VERSION >= 236
: KWin::OffscreenEffect()
Expand All @@ -61,14 +55,8 @@ ShapeCornersEffect::ShapeCornersEffect()
}

if(m_shaderManager.IsValid()) {
#if KWIN_EFFECT_API_VERSION >= 235
const auto& windowList = KX11Extras::windows();
#else
const auto& windowList = KWindowSystem::windows();
#endif
for (const auto& id: windowList)
if (const auto win = KWin::effects->findWindow(id))
windowAdded(win);
for (const auto& win: KWin::effects->stackingOrder())
windowAdded(win);
connect(KWin::effects, &KWin::EffectsHandler::windowAdded, this, &ShapeCornersEffect::windowAdded);
connect(KWin::effects, &KWin::EffectsHandler::windowDeleted, this, &ShapeCornersEffect::windowRemoved);
}
Expand Down
1 change: 0 additions & 1 deletion src/kcm/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,4 @@ target_link_libraries(kwin_shapecorners_config
KF${QT_VERSION_MAJOR}::ConfigWidgets
KF${QT_VERSION_MAJOR}::ConfigGui
KF${QT_VERSION_MAJOR}::GlobalAccel
KF${QT_VERSION_MAJOR}::WindowSystem
)

0 comments on commit 65225f7

Please sign in to comment.