From 00a71144b15ebc7b3ff832334d7d2793bb477a18 Mon Sep 17 00:00:00 2001 From: Paul Olav Tvete Date: Mon, 11 Jan 2016 14:28:24 +0100 Subject: Don't create wl_surface for desktop widgets Change-Id: I3ebcb49a4acf230b9515c0317aab2307dcb9270b Reviewed-by: Pier Luigi Fiorini (cherry picked from commit baec8be7294a176620253dbbc1b2938cf96c8360) --- src/client/qwaylandwindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/qwaylandwindow.cpp b/src/client/qwaylandwindow.cpp index 5c06f66db..4dc5e0d52 100644 --- a/src/client/qwaylandwindow.cpp +++ b/src/client/qwaylandwindow.cpp @@ -88,8 +88,8 @@ QWaylandWindow::QWaylandWindow(QWindow *window) { static WId id = 1; mWindowId = id++; - - initWindow(); + if (window->type() != Qt::Desktop) + initWindow(); } QWaylandWindow::~QWaylandWindow() -- cgit v1.2.3