Multiple focus handling changes
This commit is contained in:
parent
c923b4f075
commit
223beb8a82
10 changed files with 85 additions and 55 deletions
|
|
@ -2,6 +2,8 @@
|
|||
#include "Compositor.hpp"
|
||||
|
||||
CWindow::~CWindow() {
|
||||
if ((this->m_uSurface.xdg || this->m_uSurface.xwayland) && g_pCompositor->m_pLastFocus == g_pXWaylandManager->getWindowSurface(this))
|
||||
if (g_pCompositor->isWindowActive(this)) {
|
||||
g_pCompositor->m_pLastFocus = nullptr;
|
||||
g_pCompositor->m_pLastWindow = nullptr;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue