Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 09074fcb authored by David Edmundson's avatar David Edmundson

Don't drag windows in empty areas from touch/pen events

For a mouse users have the precision that if they clicked in an empty
area they want to perform some action.

For touch and tablets that isn't necessarily true.

From Boud in a kwin report: "The drag the window by empty areas is a
nasty one as well, especially when you're using a pen."
parent e0296f21
......@@ -453,6 +453,10 @@ namespace Oxygen
QMouseEvent *mouseEvent = static_cast<QMouseEvent*>( event );
if( !( mouseEvent->modifiers() == Qt::NoModifier && mouseEvent->button() == Qt::LeftButton ) )
{ return false; }
#if !OXYGEN_USE_KDE4
if (mouseEvent->source() != Qt::MouseEventNotSynthesized)
{ return false; }
#endif
// check lock
if( isLocked() ) return false;
......@@ -508,6 +512,10 @@ namespace Oxygen
{
Q_UNUSED( object );
#if !OXYGEN_USE_KDE4
if (mouseEvent->source() != Qt::MouseEventNotSynthesized)
{ return false; }
#endif
// stop timer
if( _dragTimer.isActive() ) _dragTimer.stop();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment