Add KDE4 guard round mouse synthesised test

wilder-5.17
David Edmundson 8 years ago
parent fb0cbedcc3
commit 8a27fe91bc
  1. 4
      kstyle/breezewindowmanager.cpp

@ -445,8 +445,10 @@ namespace Breeze
// cast event and check buttons/modifiers
auto mouseEvent = static_cast<QMouseEvent*>( 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<QMouseEvent*>( event );
#if BREEZE_USE_KDE4
if (mouseEvent->source() != Qt::MouseEventNotSynthesized)
{ return false; }
#endif
if( !_dragInProgress )
{

Loading…
Cancel
Save