summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohan Klokkhammer Helsing <johan.helsing@qt.io>2018-08-16 13:49:16 +0200
committerJohan Helsing <johan.helsing@qt.io>2018-08-17 14:30:01 +0000
commitf6ddfcf7c7d4e6b1b6ca1f84d5206bcec4c9561a (patch)
treea247cfb1f74f6480c991b3e0ff46fa8f1c47943f
parentb5dfc03a13014bf29d23784bc6802bb06e212558 (diff)
downloadqtwayland-f6ddfcf7c7d4e6b1b6ca1f84d5206bcec4c9561a.tar.gz
Client: Clear entered screens when resetting window
Previously, windows that were hidden and shown again would have the old list of entered screens. Aside from occasionally getting the current screen wrong, this also polluted the log with bogus warnings about unexpected enter events. This problem could be seen quite easily by opening, closing and opening a menu. [ChangeLog][QPA plugin] Fixed a bug where a window that was hidden and then shown on different screen would still think it was on the first screen. Change-Id: I1b27433ea6607a218384d814ae4c16b9c4395948 Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
-rw-r--r--src/client/qwaylandwindow.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/client/qwaylandwindow.cpp b/src/client/qwaylandwindow.cpp
index b88541ad..7149a2ad 100644
--- a/src/client/qwaylandwindow.cpp
+++ b/src/client/qwaylandwindow.cpp
@@ -247,6 +247,7 @@ void QWaylandWindow::reset(bool sendDestroyEvent)
mSubSurfaceWindow = nullptr;
if (isInitialized())
destroy();
+ mScreens.clear();
if (mFrameCallback) {
wl_callback_destroy(mFrameCallback);