mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-06 23:21:57 -07:00
fix some crashes
This commit is contained in:
@@ -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;
|
||||
}
|
Reference in New Issue
Block a user