diff --git a/kstyle/breezewindowmanager.cpp b/kstyle/breezewindowmanager.cpp index 5e844c6b..b9b5021d 100644 --- a/kstyle/breezewindowmanager.cpp +++ b/kstyle/breezewindowmanager.cpp @@ -445,8 +445,10 @@ namespace Breeze // cast event and check buttons/modifiers auto mouseEvent = static_cast( event ); + #if BREEZE_USE_KDE4 if (mouseEvent->source() != Qt::MouseEventNotSynthesized) { return false; } + #endif if( !( mouseEvent->modifiers() == Qt::NoModifier && mouseEvent->button() == Qt::LeftButton ) ) { return false; } @@ -511,8 +513,10 @@ namespace Breeze // cast event and check drag distance auto mouseEvent = static_cast( event ); + #if BREEZE_USE_KDE4 if (mouseEvent->source() != Qt::MouseEventNotSynthesized) { return false; } + #endif if( !_dragInProgress ) {