summaryrefslogtreecommitdiffstats
path: root/src/client/qwaylanddisplay.cpp
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.cpp
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.cpp')
-rw-r--r--src/client/qwaylanddisplay.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/client/qwaylanddisplay.cpp b/src/client/qwaylanddisplay.cpp
index 6bad56ae3..bda85c49c 100644
--- a/src/client/qwaylanddisplay.cpp
+++ b/src/client/qwaylanddisplay.cpp
@@ -237,6 +237,7 @@ void QWaylandDisplay::registry_global(uint32_t id, const QString &interface, uin
mScreens.append(screen);
// We need to get the output events before creating surfaces
forceRoundTrip();
+ screen->init();
mWaylandIntegration->screenAdded(screen);
} else if (interface == QStringLiteral("wl_compositor")) {
mCompositorVersion = qMin((int)version, 3);
@@ -369,6 +370,11 @@ bool QWaylandDisplay::supportsWindowDecoration() const
return integrationSupport;
}
+QWaylandWindow *QWaylandDisplay::lastInputWindow() const
+{
+ return mLastInputWindow.data();
+}
+
void QWaylandDisplay::setLastInputDevice(QWaylandInputDevice *device, uint32_t serial, QWaylandWindow *win)
{
mLastInputDevice = device;