Hyprland/src/Window.cpp
2022-04-02 18:57:09 +02:00

9 lines
No EOL
220 B
C++

#include "Window.hpp"
#include "Compositor.hpp"
CWindow::~CWindow() {
if (g_pCompositor->isWindowActive(this)) {
g_pCompositor->m_pLastFocus = nullptr;
g_pCompositor->m_pLastWindow = nullptr;
}
}