XdgPopupWindow: Disconnect relayout when role gets destroyed
Otherwise we will still react on a frameGeometryChanged signal and try to relayout the popup when its transient parent was already set to null leading to a crash. BUG: 472532
This commit is contained in:
parent
be6be22bae
commit
559d55f64f
1 changed files with 2 additions and 0 deletions
|
@ -1594,6 +1594,8 @@ XdgPopupWindow::XdgPopupWindow(XdgPopupInterface *shellSurface)
|
||||||
|
|
||||||
void XdgPopupWindow::handleRoleDestroyed()
|
void XdgPopupWindow::handleRoleDestroyed()
|
||||||
{
|
{
|
||||||
|
disconnect(transientFor(), &Window::frameGeometryChanged,
|
||||||
|
this, &XdgPopupWindow::relayout);
|
||||||
m_shellSurface->disconnect(this);
|
m_shellSurface->disconnect(this);
|
||||||
|
|
||||||
XdgSurfaceWindow::handleRoleDestroyed();
|
XdgSurfaceWindow::handleRoleDestroyed();
|
||||||
|
|
Loading…
Reference in a new issue