Hyprland/src/Window.cpp

9 lines
220 B
C++
Raw Normal View History

2022-03-30 21:18:42 +02:00
#include "Window.hpp"
#include "Compositor.hpp"
CWindow::~CWindow() {
2022-04-02 18:57:09 +02:00
if (g_pCompositor->isWindowActive(this)) {
2022-03-30 21:18:42 +02:00
g_pCompositor->m_pLastFocus = nullptr;
2022-04-02 18:57:09 +02:00
g_pCompositor->m_pLastWindow = nullptr;
}
2022-03-30 21:18:42 +02:00
}