QuickShellSurfaceItem: Call surfaceChangedEvent() with a consistent state


The QWaylandQuickShellSurfaceItem::surfaceChangedEvent(null, oldSurface)
gets called during the shell integration destruction, just before
firing the shellSurfaceChanged() signal, and resetting m_shellSurface
prior to that causes shellSurface() to return nullptr there,
thus making it impossible to clean-up/disconnect from shell surface
(well, unless implementation manages its own copy of m_shellSurface)

Change-Id: I09bb21740089d624be750fa05b9114efc932a403
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
commit3bd2f47b5ad6f9bfa6c29df9d46569ff12431f22
parent13829409016b4de2dbf361459af3a1d4e674dd56
authorKonstantin Ritt <ritt.ks@gmail.com>
committerKonstantin Ritt <ritt.ks@gmail.com>
commit timeMon, 7 Apr 2025 19:18:28 +0300