aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/protocols/ForeignToplevelWlr.cpp
diff options
context:
space:
mode:
authorVaxry <[email protected]>2024-04-25 16:35:09 +0100
committerVaxry <[email protected]>2024-04-25 16:35:09 +0100
commit9fc3cb5629bcc006603e4f2f7906c75d393798dc (patch)
tree867f1cbad58dc4bf6a3af04715561ad0994dab54 /src/protocols/ForeignToplevelWlr.cpp
parent01df3b73d815beaa892849ae7bd4eddc94642dc7 (diff)
downloadHyprland-9fc3cb5629bcc006603e4f2f7906c75d393798dc.tar.gz
Hyprland-9fc3cb5629bcc006603e4f2f7906c75d393798dc.zip
foreign-toplevel: fix bad_any_cast in moveWindow
fixes #5740
Diffstat (limited to 'src/protocols/ForeignToplevelWlr.cpp')
-rw-r--r--src/protocols/ForeignToplevelWlr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/protocols/ForeignToplevelWlr.cpp b/src/protocols/ForeignToplevelWlr.cpp
index 436bf1d2..1989ca5c 100644
--- a/src/protocols/ForeignToplevelWlr.cpp
+++ b/src/protocols/ForeignToplevelWlr.cpp
@@ -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);
}