hyprpm: verify headersHashCompiled as well in headersValid()

ref #4547
This commit is contained in:
Vaxry 2024-01-28 20:01:35 +00:00
parent 0e5f14d8d2
commit 5a90911b70

View File

@ -310,7 +310,9 @@ eHeadersErrors CPluginManager::headersValid() {
hash = hash.substr(hash.find_first_of('"') + 1);
hash = hash.substr(0, hash.find_first_of('"'));
if (hash != HLVER.hash)
auto GLOBALSTATE = DataState::getGlobalState();
if (hash != HLVER.hash || hash != GLOBALSTATE.headersHashCompiled)
return HEADERS_MISMATCHED;
return HEADERS_OK;