diff --git a/kstyle/breezewindowmanager.cpp b/kstyle/breezewindowmanager.cpp --- a/kstyle/breezewindowmanager.cpp +++ b/kstyle/breezewindowmanager.cpp @@ -445,6 +445,8 @@ // cast event and check buttons/modifiers auto mouseEvent = static_cast( event ); + if (mouseEvent->source() != Qt::MouseEventNotSynthesized) + { return false; } if( !( mouseEvent->modifiers() == Qt::NoModifier && mouseEvent->button() == Qt::LeftButton ) ) { return false; } @@ -509,6 +511,8 @@ // cast event and check drag distance auto mouseEvent = static_cast( event ); + if (mouseEvent->source() != Qt::MouseEventNotSynthesized) + { return false; } if( !_dragInProgress ) {