foreign-toplevel: fix bad_any_cast in moveWindow

fixes #5740
This commit is contained in:
Vaxry 2024-04-25 16:35:09 +01:00
parent 01df3b73d8
commit 9fc3cb5629

View file

@ -309,7 +309,7 @@ CForeignToplevelWlrProtocol::CForeignToplevelWlrProtocol(const wl_interface* ifa
});
static auto P4 = g_pHookSystem->hookDynamic("moveWindow", [this](void* self, SCallbackInfo& info, std::any data) {
const auto PWINDOW = std::any_cast<CWindow*>(data);
const auto PWINDOW = std::any_cast<CWindow*>(std::any_cast<std::vector<std::any>>(data).at(0));
for (auto& m : m_vManagers) {
m->onMoveMonitor(PWINDOW);
}