summaryrefslogtreecommitdiffstats
path: root/src/compositor/extensions/qwaylandquickshellsurfaceitem_p.h
diff options
context:
space:
mode:
authorLiang Qi <liang.qi@qt.io>2016-06-30 13:35:37 +0200
committerLiang Qi <liang.qi@qt.io>2016-06-30 14:28:55 +0200
commitb07e95e408fde45a0ce1a1b6683d432c9657e650 (patch)
tree65a80f556bf54d188d17ff985f37eb138007c9f4 /src/compositor/extensions/qwaylandquickshellsurfaceitem_p.h
parent4d4f44a70f663428241c83e26d073f5e5ece8b62 (diff)
parentcddeb1c7c0e9d02c5f5542d7d12b4fa992bfb050 (diff)
Merge remote-tracking branch 'origin/5.7' into dev
Conflicts: src/compositor/extensions/qwaylandxdgshellintegration.cpp Change-Id: I3e8666d0c2fd047f12daeb94b2c967c646576ed9
Diffstat (limited to 'src/compositor/extensions/qwaylandquickshellsurfaceitem_p.h')
-rw-r--r--src/compositor/extensions/qwaylandquickshellsurfaceitem_p.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/compositor/extensions/qwaylandquickshellsurfaceitem_p.h b/src/compositor/extensions/qwaylandquickshellsurfaceitem_p.h
index 53c88c965..3cd9bf228 100644
--- a/src/compositor/extensions/qwaylandquickshellsurfaceitem_p.h
+++ b/src/compositor/extensions/qwaylandquickshellsurfaceitem_p.h
@@ -38,6 +38,7 @@
#define QWAYLANDQUICKSHELLSURFACEITEM_P_H
#include <QtWaylandCompositor/private/qwaylandquickitem_p.h>
+#include <QtCore/QBasicTimer>
#include <functional>
@@ -88,6 +89,9 @@ public:
static void startFilter(QWaylandClient *client, CallbackFunction closePopupCallback);
static void cancelFilter();
+protected:
+ void timerEvent(QTimerEvent *event) Q_DECL_OVERRIDE;
+
private:
void stopFilter();
@@ -97,6 +101,7 @@ private:
bool waitForRelease;
QPointer<QWaylandClient> client;
CallbackFunction closePopups;
+ QBasicTimer mousePressTimeout;
static QWaylandQuickShellEventFilter *self;
};