From 0eec7441ef3ab5ceca1e5b886660a019a42d9f27 Mon Sep 17 00:00:00 2001 From: Vaxry Date: Fri, 14 Nov 2025 17:37:50 +0000 Subject: [PATCH] fix --- hyprtester/plugin/src/main.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hyprtester/plugin/src/main.cpp b/hyprtester/plugin/src/main.cpp index 0a5d9a545..72120eaca 100644 --- a/hyprtester/plugin/src/main.cpp +++ b/hyprtester/plugin/src/main.cpp @@ -252,6 +252,9 @@ static Desktop::Rule::CWindowRuleEffectContainer::storageType ruleIDX = 0; // static SDispatchResult addRule(std::string in) { ruleIDX = Desktop::Rule::windowEffects()->registerEffect("plugin_rule"); + + if (Desktop::Rule::windowEffects()->registerEffect("plugin_rule") != ruleIDX) + return {.success = false, .error = "re-registering returned a different id?"}; return {}; }