layershellv1window: Check isDeleted before activating it
Opening the user actions menu causes auto-hiding layer-shell windows (such as Kickoff, KRunner) to hide, closing the menu and having KWin transfer focus back to the window which is now half-destroyed. XdgToplevelWindow::acceptsFocus() also checks for isDeleted().
This commit is contained in:
parent
ae884dd19e
commit
75935c126c
1 changed files with 1 additions and 1 deletions
|
@ -218,7 +218,7 @@ Layer LayerShellV1Window::belongsToLayer() const
|
|||
|
||||
bool LayerShellV1Window::acceptsFocus() const
|
||||
{
|
||||
return m_shellSurface->acceptsFocus();
|
||||
return !isDeleted() && m_shellSurface->acceptsFocus();
|
||||
}
|
||||
|
||||
void LayerShellV1Window::moveResizeInternal(const QRectF &rect, MoveResizeMode mode)
|
||||
|
|
Loading…
Reference in a new issue