QWaylandWindow: reset window should reset mask

When QWaylandWindow::reset() is called, the window's mask is not changed. It
means that when the window will be initialized again, it will not re-send the
mask description to the server side through Wayland.

Task-number: QTBUG-62638
Change-Id: I07d561f466836bbd90ae58521c0768ed85554256
Reviewed-by: Johan Helsing <johan.helsing@qt.io>
Reviewed-by: Christophe Chapuis <chris.chapuis@gmail.com>
This commit is contained in:
Christophe Chapuis 2017-08-21 13:29:47 +00:00 committed by Johan Helsing
parent 1a0939a8de
commit b3621cfe7c

View File

@ -254,6 +254,8 @@ void QWaylandWindow::reset()
wl_callback_destroy(mFrameCallback); wl_callback_destroy(mFrameCallback);
mFrameCallback = nullptr; mFrameCallback = nullptr;
} }
mMask = QRegion();
} }
QWaylandWindow *QWaylandWindow::fromWlSurface(::wl_surface *surface) QWaylandWindow *QWaylandWindow::fromWlSurface(::wl_surface *surface)