summaryrefslogtreecommitdiffstats
path: root/src/client/qwaylanddisplay_p.h
diff options
context:
space:
mode:
authorLiang Qi <liang.qi@theqtcompany.com>2015-06-03 11:02:30 +0200
committerLiang Qi <liang.qi@theqtcompany.com>2015-06-03 11:02:30 +0200
commit901a00d5f165a3462e60a78c7a63e46da25067fd (patch)
treebcf17e4b551d6140d1937f1ca3d90d82755968a1 /src/client/qwaylanddisplay_p.h
parent2a975049e582d98a4a3ee8dfce7a1be6737ec277 (diff)
parentf0e852e545789d4d52149ece368fa388c558a43f (diff)
Merge remote-tracking branch 'origin/5.5' into dev
Conflicts: src/compositor/wayland_wrapper/qwloutput.cpp Change-Id: I05f7431aca46760f90632dfa7ef9c4d0abf392ec
Diffstat (limited to 'src/client/qwaylanddisplay_p.h')
-rw-r--r--src/client/qwaylanddisplay_p.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/client/qwaylanddisplay_p.h b/src/client/qwaylanddisplay_p.h
index bbd0e871d..9a7ad39ce 100644
--- a/src/client/qwaylanddisplay_p.h
+++ b/src/client/qwaylanddisplay_p.h
@@ -36,6 +36,7 @@
#include <QtCore/QObject>
#include <QtCore/QRect>
+#include <QtCore/QPointer>
#include <QtCore/QWaitCondition>
@@ -156,7 +157,7 @@ public:
uint32_t lastInputSerial() const { return mLastInputSerial; }
QWaylandInputDevice *lastInputDevice() const { return mLastInputDevice; }
- QWaylandWindow *lastInputWindow() const { return mLastInputWindow; }
+ QWaylandWindow *lastInputWindow() const;
void setLastInputDevice(QWaylandInputDevice *device, uint32_t serial, QWaylandWindow *window);
public slots:
@@ -200,7 +201,7 @@ private:
int mCompositorVersion;
uint32_t mLastInputSerial;
QWaylandInputDevice *mLastInputDevice;
- QWaylandWindow *mLastInputWindow;
+ QPointer<QWaylandWindow> mLastInputWindow;
void registry_global(uint32_t id, const QString &interface, uint32_t version) Q_DECL_OVERRIDE;
void registry_global_remove(uint32_t id) Q_DECL_OVERRIDE;