summaryrefslogtreecommitdiffstats
path: root/src/plugins/shellintegration
diff options
context:
space:
mode:
authorJohan Klokkhammer Helsing <johan.helsing@qt.io>2018-05-25 12:14:22 +0200
committerJohan Helsing <johan.helsing@qt.io>2018-05-28 11:41:20 +0000
commit89d3c4a13b3e27dd511064812bb52d00cedb9479 (patch)
treeb0e2087134d8d7846ef67c275c82973d513a9784 /src/plugins/shellintegration
parentcce06a8e0ecbba8a0fe00b65ccb1a0ef6817c192 (diff)
Client: Set unconfigured xdg surfaces (v6) as not exposed
Previously, isExposed would always return true, which resulted in a wl_egl_window being created and an illegal attach and commit occurring. i.e. protocol errors such as: zxdg_surface_v6@15: error 3: xdg_surface has never been configured Change-Id: I277c65d663cfed0fe436a128fe1963d138f01c87 Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io> Reviewed-by: David Edmundson <davidedmundson@kde.org>
Diffstat (limited to 'src/plugins/shellintegration')
-rw-r--r--src/plugins/shellintegration/xdg-shell-v6/qwaylandxdgshellv6_p.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/shellintegration/xdg-shell-v6/qwaylandxdgshellv6_p.h b/src/plugins/shellintegration/xdg-shell-v6/qwaylandxdgshellv6_p.h
index 574e6dd9f..a2d194471 100644
--- a/src/plugins/shellintegration/xdg-shell-v6/qwaylandxdgshellv6_p.h
+++ b/src/plugins/shellintegration/xdg-shell-v6/qwaylandxdgshellv6_p.h
@@ -86,6 +86,7 @@ public:
void setAppId(const QString &appId) override;
void setType(Qt::WindowType type, QWaylandWindow *transientParent) override;
+ bool isExposed() const override { return m_configured; }
bool handleExpose(const QRegion &) override;
bool handlesActiveState() const { return m_toplevel; }
void applyConfigure() override;