diff options
Diffstat (limited to 'src/Window.cpp')
| -rw-r--r-- | src/Window.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Window.cpp b/src/Window.cpp index e69de29b..0e5573bb 100644 --- a/src/Window.cpp +++ b/src/Window.cpp @@ -0,0 +1,7 @@ +#include "Window.hpp" +#include "Compositor.hpp" + +CWindow::~CWindow() { + if ((this->m_uSurface.xdg || this->m_uSurface.xwayland) && g_pCompositor->m_pLastFocus == g_pXWaylandManager->getWindowSurface(this)) + g_pCompositor->m_pLastFocus = nullptr; +}
\ No newline at end of file |
