Skip to content

Commit 16dae4d

Browse files
nnra6864outfoxxed
authored andcommitted
Updated hash checking
This is needed since hyprwm/Hyprland#12110 got merged
1 parent af94b01 commit 16dae4d

3 files changed

Lines changed: 36 additions & 33 deletions

File tree

flake.lock

Lines changed: 31 additions & 31 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
inputs = {
3-
hyprland.url = "github:hyprwm/hyprland/46174f78b374b6cea669c48880877a8bdcf7802f";
3+
hyprland.url = "github:hyprwm/hyprland/8e9add2afda58d233a75e4c5ce8503b24fa59ceb";
44
};
55

66
outputs = { self, hyprland, ... }: let

src/main.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,10 @@ APICALL EXPORT PLUGIN_DESCRIPTION_INFO PLUGIN_INIT(HANDLE handle) {
1414
PHANDLE = handle;
1515

1616
#ifndef HY3_NO_VERSION_CHECK
17-
if (GIT_COMMIT_HASH != std::string(__hyprland_api_get_hash())) {
17+
const std::string COMPOSITOR_HASH = __hyprland_api_get_hash();
18+
const std::string CLIENT_HASH = __hyprland_api_get_client_hash();
19+
20+
if (COMPOSITOR_HASH != CLIENT_HASH) {
1821
HyprlandAPI::addNotification(
1922
PHANDLE,
2023
"[hy3] hy3 was compiled for a different version of hyprland; refusing to load.",

0 commit comments

Comments
 (0)