File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -31,4 +31,9 @@ elseif(DEFINED KWin_VERSION AND KWin_VERSION VERSION_GREATER_EQUAL "6.3.0")
3131 KANDO_KWIN_HAS_TABLET_TOOL_AXIS_PROXIMITY_TABLET_EVENT )
3232else ()
3333 target_compile_definitions (kandointegration PRIVATE KANDO_KWIN_HAS_TABLET_TOOL_EVENT )
34+ endif ()
35+
36+ # KWin 6.7 changed EffectHandler::clientArea() and removed the screen argument.
37+ if (DEFINED KWin_VERSION AND KWin_VERSION VERSION_GREATER_EQUAL "6.7.0" )
38+ target_compile_definitions (kandointegration PRIVATE KANDO_KWIN_HAS_CLIENT_AREA_TWO_ARGS )
3439endif ()
Original file line number Diff line number Diff line change 1010
1111#include " KandoKWinIntegrationPlugin.h"
1212
13- #include < config-kwin.h>
1413#include < effect/effecthandler.h>
1514#include < effect/effectwindow.h>
1615
@@ -57,7 +56,7 @@ QVariantMap KandoKWinIntegrationPlugin::getWMInfo() const {
5756 const auto windowName = activeWindow ? activeWindow->caption () : QString ();
5857 const auto appName = activeWindow ? activeWindow->windowClass () : QString ();
5958
60- #if (PROJECT_VERSION_MAJOR >= 6) && (PROJECT_VERSION_MINOR >= 7 )
59+ #if defined(KANDO_KWIN_HAS_CLIENT_AREA_TWO_ARGS )
6160 QRectF workArea = KWin::effects->clientArea (KWin::MaximizeArea, pointerPos.toPoint ());
6261#else
6362 QRectF workArea =
You can’t perform that action at this time.
0 commit comments