From 775111b6032185c9ef164d7ba1417a875c1d0287 Mon Sep 17 00:00:00 2001 From: user111111111111111111111111111111111 Date: Fri, 27 Dec 2024 15:20:55 +0000 Subject: [PATCH] foreign-toplevel: update active on null window focus (#8860) * update ForeignTopLevel on null window focus * fix * clang --- src/protocols/ForeignToplevelWlr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/protocols/ForeignToplevelWlr.cpp b/src/protocols/ForeignToplevelWlr.cpp index 06814c88..6bbd377c 100644 --- a/src/protocols/ForeignToplevelWlr.cpp +++ b/src/protocols/ForeignToplevelWlr.cpp @@ -347,7 +347,7 @@ CForeignToplevelWlrProtocol::CForeignToplevelWlrProtocol(const wl_interface* ifa static auto P3 = g_pHookSystem->hookDynamic("activeWindow", [this](void* self, SCallbackInfo& info, std::any data) { const auto PWINDOW = std::any_cast(data); - if (!windowValidForForeign(PWINDOW)) + if (PWINDOW && !windowValidForForeign(PWINDOW)) return; for (auto const& m : m_vManagers) {