summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/client/qwaylandwindow.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/client/qwaylandwindow.cpp b/src/client/qwaylandwindow.cpp
index 17fbaac7..1bc83200 100644
--- a/src/client/qwaylandwindow.cpp
+++ b/src/client/qwaylandwindow.cpp
@@ -103,7 +103,14 @@ QWaylandWindow::QWaylandWindow(QWindow *window)
if (mDisplay->subSurfaceExtension())
mSubSurfaceWindow = new QWaylandSubSurface(this, mDisplay->subSurfaceExtension()->get_sub_surface_aware_surface(object()));
if (mDisplay->iviApplication() && (window->type() & Qt::Window)) {
- mIviSurface = new QWaylandIviSurface(mDisplay->iviApplication()->surface_create((uint32_t)QCoreApplication::applicationPid(), object()), this);
+ unsigned int id = 0;
+ QVariant value = window->property("IVI-Surface-ID");
+ if (value.isValid())
+ id = value.toUInt();
+ else
+ id = (uint32_t)QCoreApplication::applicationPid();
+
+ mIviSurface = new QWaylandIviSurface(mDisplay->iviApplication()->surface_create(id, object()), this);
}
if (!(window->flags() & Qt::BypassWindowManagerHint)) {
mShellSurface = mDisplay->createShellSurface(this);