From 8a27fe91bc056ab754e663e4111ce054473418a5 Mon Sep 17 00:00:00 2001 From: David Edmundson Date: Fri, 5 Oct 2018 13:07:39 +0100 Subject: [PATCH] Add KDE4 guard round mouse synthesised test --- kstyle/breezewindowmanager.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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 ) {