Fix compile error with building screenedges disabled

icc-effect-5.14.5
Martin Gräßlin 2013-02-22 12:37:12 +01:00
parent 7e10fe524f
commit 8efe111162
1 changed files with 4 additions and 1 deletions

View File

@ -1594,12 +1594,15 @@ QVariant EffectsHandlerImpl::kwinOption(KWinOption kwopt)
switch (kwopt) {
case CloseButtonCorner:
return Workspace::self()->decorationCloseButtonCorner();
#ifdef KWIN_BUILD_SCREENEDGES
case SwitchDesktopOnScreenEdge:
return ScreenEdges::self()->isDesktopSwitching();
case SwitchDesktopOnScreenEdgeMovingWindows:
return ScreenEdges::self()->isDesktopSwitchingMovingClients();
#endif
default:
return QVariant(); // an invalid one
}
return QVariant(); // an invalid one
}
void EffectsHandlerImpl::slotShowOutline(const QRect& geometry)