diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-03-30 21:18:42 +0200 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-03-30 21:18:42 +0200 |
| commit | 3ca2d3b678b164e4ac0c14be59445c4fe30c9187 (patch) | |
| tree | 7182e3bf98cb5686110580edf750ae9d7b07036c /src/Window.cpp | |
| parent | 3f84dac599c3a4614e929e2bfa7bc643b9c1ea9c (diff) | |
fix some crashes
Diffstat (limited to 'src/Window.cpp')
| -rw-r--r-- | src/Window.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Window.cpp b/src/Window.cpp index e69de29b..0e5573bb 100644 --- a/src/Window.cpp +++ b/src/Window.cpp @@ -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; +}
\ No newline at end of file |
