input: properly track mouse focus on drag operations
This commit is contained in:
parent
1b48642fd1
commit
fb80cbe415
5 changed files with 49 additions and 8 deletions
|
|
@ -36,6 +36,8 @@ void CWLSurface::destroy() {
|
|||
|
||||
if (g_pCompositor->m_pLastFocus == m_pWLRSurface)
|
||||
g_pCompositor->m_pLastFocus = nullptr;
|
||||
if (g_pInputManager->m_pLastMouseSurface == m_pWLRSurface)
|
||||
g_pInputManager->m_pLastMouseSurface = nullptr;
|
||||
|
||||
m_pWLRSurface = nullptr;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue