summaryrefslogtreecommitdiffstats
path: root/src/client/qwaylandabstractdecoration.cpp
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@theqtcompany.com>2015-06-05 11:55:46 +0200
committerChristian Kandeler <christian.kandeler@theqtcompany.com>2015-06-09 12:55:29 +0000
commit4018a19baa5fb63ee228fdbd24eb1eb0a343f8e4 (patch)
treeb56e308554ff908e691e1e0f40f4922c465e4d4a /src/client/qwaylandabstractdecoration.cpp
parent9189a24ea7e6f1c56b58a7d8cf048ed9968d3161 (diff)
Fix typo that leads to mis-evaluation of an expression.
Change-Id: I5d6eedeb3dfb80ca9df7ca27e29ad6604dbfe683 Reviewed-by: Laszlo Agocs <laszlo.agocs@theqtcompany.com>
Diffstat (limited to 'src/client/qwaylandabstractdecoration.cpp')
-rw-r--r--src/client/qwaylandabstractdecoration.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/qwaylandabstractdecoration.cpp b/src/client/qwaylandabstractdecoration.cpp
index 7698ff750..54a990b2d 100644
--- a/src/client/qwaylandabstractdecoration.cpp
+++ b/src/client/qwaylandabstractdecoration.cpp
@@ -147,7 +147,7 @@ void QWaylandAbstractDecoration::startMove(QWaylandInputDevice *inputDevice, Qt:
bool QWaylandAbstractDecoration::isLeftClicked(Qt::MouseButtons newMouseButtonState)
{
Q_D(QWaylandAbstractDecoration);
- if ((!d->m_mouseButtons & Qt::LeftButton) && (newMouseButtonState & Qt::LeftButton))
+ if (!(d->m_mouseButtons & Qt::LeftButton) && (newMouseButtonState & Qt::LeftButton))
return true;
return false;
}