diff options
author | Paul Olav Tvete <paul.tvete@theqtcompany.com> | 2016-05-26 15:52:12 +0200 |
---|---|---|
committer | Paul Olav Tvete <paul.tvete@theqtcompany.com> | 2016-05-31 08:03:22 +0000 |
commit | a90de9b657591fd75110c465a96edde4b1899ca3 (patch) | |
tree | f145b3017b857b02981cfb2dbd2c0e19a4ec383c /src/compositor/extensions/qwaylandwlshellintegration_p.h | |
parent | fd9eefba8089ff9cd0bfe986dc527bbdb0630b02 (diff) |
Fix potential crash on surface destruction
Make sure we don't try use the surface object after we get the
surfaceDestroyed signal.
Change-Id: I9b266bdb7c6ba1b4d1cb738e0c1bd79ca031a4fc
Reviewed-by: Johan Helsing <johan.helsing@qt.io>
Reviewed-by: Pier Luigi Fiorini <pierluigi.fiorini@gmail.com>
Diffstat (limited to 'src/compositor/extensions/qwaylandwlshellintegration_p.h')
-rw-r--r-- | src/compositor/extensions/qwaylandwlshellintegration_p.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/compositor/extensions/qwaylandwlshellintegration_p.h b/src/compositor/extensions/qwaylandwlshellintegration_p.h index 07bbc63cb..3f063af39 100644 --- a/src/compositor/extensions/qwaylandwlshellintegration_p.h +++ b/src/compositor/extensions/qwaylandwlshellintegration_p.h @@ -79,7 +79,9 @@ private: Move }; - void setIsPopup(bool popup); + void handlePopupClosed(); + void handlePopupRemoved(); + static void closePopups(); QWaylandQuickShellSurfaceItem *m_item; |