From d14524e7a6a09fdf0d5b2f3a554d751f4fa6b9a6 Mon Sep 17 00:00:00 2001 From: Hachimi2333 <2369425921@qq.com> Date: Sat, 17 Oct 2026 22:11:35 +0800 Subject: [PATCH] Fix compatibility with Hyprland 0.56.2 --- src/plugin.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/plugin.cpp b/src/plugin.cpp index 0ab7323..c9cf13f 100644 --- a/src/plugin.cpp +++ b/src/plugin.cpp @@ -6,7 +6,9 @@ #include #include #include -#include +#include +#include +#include #include #include @@ -133,7 +135,7 @@ struct Display { }; [[nodiscard]] auto currentDisplay() -> Display { - const auto monitor = g_pCompositor->getMonitorFromCursor(); + const auto monitor = State::monitorState()->query().vec(Pointer::mgr()->position()).run(); if (!monitor) return {};