summaryrefslogtreecommitdiff
path: root/src/client/qwaylandwindow.cpp
diff options
context:
space:
mode:
authorPaul Olav Tvete <paul.tvete@qt.io>2019-08-23 09:55:56 +0200
committerPaul Olav Tvete <paul.tvete@qt.io>2019-08-23 10:34:58 +0200
commit717b4ddc6044d6ade9186148edd47c77b4120af5 (patch)
treeea3c8b66fd6f6b6e040d5d1de6a14bb6a230eb53 /src/client/qwaylandwindow.cpp
parent5d43a686fc3d5f13087a61e8ef216ecbbae0d15e (diff)
parent13ca5859d3e4a3e22532978dc1bd8629d9aa2107 (diff)
downloadqtwayland-717b4ddc6044d6ade9186148edd47c77b4120af5.tar.gz
Merge "Merge remote-tracking branch 'qt/5.12' into 5.12.5"
Diffstat (limited to 'src/client/qwaylandwindow.cpp')
-rw-r--r--src/client/qwaylandwindow.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/client/qwaylandwindow.cpp b/src/client/qwaylandwindow.cpp
index 1d4315a3..f82898bd 100644
--- a/src/client/qwaylandwindow.cpp
+++ b/src/client/qwaylandwindow.cpp
@@ -211,8 +211,11 @@ void QWaylandWindow::initWindow()
void QWaylandWindow::initializeWlSurface()
{
Q_ASSERT(!isInitialized());
- QWriteLocker lock(&mSurfaceLock);
- init(mDisplay->createSurface(static_cast<QtWayland::wl_surface *>(this)));
+ {
+ QWriteLocker lock(&mSurfaceLock);
+ init(mDisplay->createSurface(static_cast<QtWayland::wl_surface *>(this)));
+ }
+ emit wlSurfaceCreated();
}
bool QWaylandWindow::shouldCreateShellSurface() const
@@ -248,6 +251,7 @@ void QWaylandWindow::reset(bool sendDestroyEvent)
delete mSubSurfaceWindow;
mSubSurfaceWindow = nullptr;
if (isInitialized()) {
+ emit wlSurfaceDestroyed();
QWriteLocker lock(&mSurfaceLock);
destroy();
}