foreign-toplevel: update active on null window focus (#8860)

* update ForeignTopLevel on null window focus

* fix

* clang
This commit is contained in:
user111111111111111111111111111111111 2024-12-27 15:20:55 +00:00 committed by GitHub
parent 85632e7c33
commit 775111b603
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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<PHLWINDOW>(data);
if (!windowValidForForeign(PWINDOW))
if (PWINDOW && !windowValidForForeign(PWINDOW))
return;
for (auto const& m : m_vManagers) {