summaryrefslogtreecommitdiff
path: root/src/Window.cpp
blob: 0e5573bb89d79038afa5199c0a5086a3bbc63603 (plain)
1
2
3
4
5
6
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;
}