summaryrefslogtreecommitdiff
path: root/src/Window.cpp
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2022-04-02 18:57:09 +0200
committervaxerski <43317083+vaxerski@users.noreply.github.com>2022-04-02 18:57:09 +0200
commit223beb8a826773e2e3ea4c6d7e7d40fde9247d9a (patch)
tree41d89a962caaf8e63f777e50cf00a2505e7f9a3e /src/Window.cpp
parentc923b4f0756c3494d408a257c08922621d120ae2 (diff)
Multiple focus handling changes
Diffstat (limited to 'src/Window.cpp')
-rw-r--r--src/Window.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Window.cpp b/src/Window.cpp
index 0e5573bb..ff8ba299 100644
--- a/src/Window.cpp
+++ b/src/Window.cpp
@@ -2,6 +2,8 @@
#include "Compositor.hpp"
CWindow::~CWindow() {
- if ((this->m_uSurface.xdg || this->m_uSurface.xwayland) && g_pCompositor->m_pLastFocus == g_pXWaylandManager->getWindowSurface(this))
+ if (g_pCompositor->isWindowActive(this)) {
g_pCompositor->m_pLastFocus = nullptr;
+ g_pCompositor->m_pLastWindow = nullptr;
+ }
} \ No newline at end of file