fix some crashes
This commit is contained in:
parent
3f84dac599
commit
3ca2d3b678
3 changed files with 17 additions and 8 deletions
|
|
@ -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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue