From 81f4b964f997a3174596ef22c7a1dee8a5f616c7 Mon Sep 17 00:00:00 2001 From: Virt <41426325+VirtCode@users.noreply.github.com> Date: Mon, 18 Nov 2024 09:42:41 +0100 Subject: [PATCH] fix: fix crash if cursor manager not yet initialized fixes #41 --- src/highres.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/highres.cpp b/src/highres.cpp index c3f9b00..78a6603 100644 --- a/src/highres.cpp +++ b/src/highres.cpp @@ -36,7 +36,7 @@ void CHighresHandler::update() { static auto* const* PSHAKE_BASE= (Hyprlang::FLOAT* const*) getConfig(CONFIG_SHAKE_BASE); static auto* const* PSHAKE = (Hyprlang::INT* const*) getConfig(CONFIG_SHAKE); // currently only needed for shake - if (!**PENABLED || !**PUSEHYPRCURSOR || !**PSHAKE) { + if (!isEnabled() || !**PENABLED || !**PUSEHYPRCURSOR || !**PSHAKE) { // free manager if no longer enabled if (manager) { manager = nullptr;