Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions borders-plus-plus/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,10 @@ void onNewWindow(void* self, std::any data) {
APICALL EXPORT PLUGIN_DESCRIPTION_INFO PLUGIN_INIT(HANDLE handle) {
PHANDLE = handle;

const std::string HASH = __hyprland_api_get_hash();
const std::string COMPOSITOR_HASH = __hyprland_api_get_hash();
const std::string CLIENT_HASH = __hyprland_api_get_client_hash();

if (HASH != GIT_COMMIT_HASH) {
if (COMPOSITOR_HASH != CLIENT_HASH) {
HyprlandAPI::addNotification(PHANDLE, "[borders-plus-plus] Failure in initialization: Version mismatch (headers ver is not equal to running hyprland ver)",
CHyprColor{1.0, 0.2, 0.2, 1.0}, 5000);
throw std::runtime_error("[bpp] Version mismatch");
Expand Down
5 changes: 3 additions & 2 deletions csgo-vulkan-fix/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,10 @@ CRegion hkWLSurfaceDamage(CWLSurface* thisptr) {
APICALL EXPORT PLUGIN_DESCRIPTION_INFO PLUGIN_INIT(HANDLE handle) {
PHANDLE = handle;

const std::string HASH = __hyprland_api_get_hash();
const std::string COMPOSITOR_HASH = __hyprland_api_get_hash();
const std::string CLIENT_HASH = __hyprland_api_get_client_hash();

if (HASH != GIT_COMMIT_HASH) {
if (COMPOSITOR_HASH != CLIENT_HASH) {
HyprlandAPI::addNotification(PHANDLE, "[csgo-vulkan-fix] Failure in initialization: Version mismatch (headers ver is not equal to running hyprland ver)",
CHyprColor{1.0, 0.2, 0.2, 1.0}, 5000);
throw std::runtime_error("[vkfix] Version mismatch");
Expand Down
5 changes: 3 additions & 2 deletions hyprbars/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,10 @@ Hyprlang::CParseResult onNewButton(const char* K, const char* V) {
APICALL EXPORT PLUGIN_DESCRIPTION_INFO PLUGIN_INIT(HANDLE handle) {
PHANDLE = handle;

const std::string HASH = __hyprland_api_get_hash();
const std::string COMPOSITOR_HASH = __hyprland_api_get_hash();
const std::string CLIENT_HASH = __hyprland_api_get_client_hash();

if (HASH != GIT_COMMIT_HASH) {
if (COMPOSITOR_HASH != CLIENT_HASH) {
HyprlandAPI::addNotification(PHANDLE, "[hyprbars] Failure in initialization: Version mismatch (headers ver is not equal to running hyprland ver)",
CHyprColor{1.0, 0.2, 0.2, 1.0}, 5000);
throw std::runtime_error("[hb] Version mismatch");
Expand Down
5 changes: 3 additions & 2 deletions hyprexpo/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -182,9 +182,10 @@ static Hyprlang::CParseResult expoGestureKeyword(const char* LHS, const char* RH
APICALL EXPORT PLUGIN_DESCRIPTION_INFO PLUGIN_INIT(HANDLE handle) {
PHANDLE = handle;

const std::string HASH = __hyprland_api_get_hash();
const std::string COMPOSITOR_HASH = __hyprland_api_get_hash();
const std::string CLIENT_HASH = __hyprland_api_get_client_hash();

if (HASH != GIT_COMMIT_HASH) {
if (COMPOSITOR_HASH != CLIENT_HASH) {
failNotif("Version mismatch (headers ver is not equal to running hyprland ver)");
throw std::runtime_error("[he] Version mismatch");
}
Expand Down
5 changes: 3 additions & 2 deletions hyprfocus/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,10 @@ static void onFocusChange(PHLWINDOW window) {
APICALL EXPORT PLUGIN_DESCRIPTION_INFO PLUGIN_INIT(HANDLE handle) {
PHANDLE = handle;

const std::string HASH = __hyprland_api_get_hash();
const std::string COMPOSITOR_HASH = __hyprland_api_get_hash();
const std::string CLIENT_HASH = __hyprland_api_get_client_hash();

if (HASH != GIT_COMMIT_HASH) {
if (COMPOSITOR_HASH != CLIENT_HASH) {
HyprlandAPI::addNotification(PHANDLE, "[hyprwinwrap] Failure in initialization: Version mismatch (headers ver is not equal to running hyprland ver)",
CHyprColor{1.0, 0.2, 0.2, 1.0}, 5000);
throw std::runtime_error("[hww] Version mismatch");
Expand Down
5 changes: 3 additions & 2 deletions hyprscrolling/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,10 @@ UP<CScrollingLayout> g_pScrollingLayout;
APICALL EXPORT PLUGIN_DESCRIPTION_INFO PLUGIN_INIT(HANDLE handle) {
PHANDLE = handle;

const std::string HASH = __hyprland_api_get_hash();
const std::string COMPOSITOR_HASH = __hyprland_api_get_hash();
const std::string CLIENT_HASH = __hyprland_api_get_client_hash();

if (HASH != GIT_COMMIT_HASH) {
if (COMPOSITOR_HASH != CLIENT_HASH) {
HyprlandAPI::addNotification(PHANDLE, "[hyprscrolling] Failure in initialization: Version mismatch (headers ver is not equal to running hyprland ver)",
CHyprColor{1.0, 0.2, 0.2, 1.0}, 5000);
throw std::runtime_error("[hs] Version mismatch");
Expand Down
5 changes: 3 additions & 2 deletions hyprtrails/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,10 @@ void initGlobal() {
APICALL EXPORT PLUGIN_DESCRIPTION_INFO PLUGIN_INIT(HANDLE handle) {
PHANDLE = handle;

const std::string HASH = __hyprland_api_get_hash();
const std::string COMPOSITOR_HASH = __hyprland_api_get_hash();
const std::string CLIENT_HASH = __hyprland_api_get_client_hash();

if (HASH != GIT_COMMIT_HASH) {
if (COMPOSITOR_HASH != CLIENT_HASH) {
HyprlandAPI::addNotification(PHANDLE, "[ht] Failure in initialization: Version mismatch (headers ver is not equal to running hyprland ver)", CHyprColor{1.0, 0.2, 0.2, 1.0},
5000);
throw std::runtime_error("[ht] Version mismatch");
Expand Down
5 changes: 3 additions & 2 deletions hyprwinwrap/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -185,9 +185,10 @@ void onConfigReloaded() {
APICALL EXPORT PLUGIN_DESCRIPTION_INFO PLUGIN_INIT(HANDLE handle) {
PHANDLE = handle;

const std::string HASH = __hyprland_api_get_hash();
const std::string COMPOSITOR_HASH = __hyprland_api_get_hash();
const std::string CLIENT_HASH = __hyprland_api_get_client_hash();

if (HASH != GIT_COMMIT_HASH) {
if (COMPOSITOR_HASH != CLIENT_HASH) {
HyprlandAPI::addNotification(PHANDLE, "[hyprwinwrap] Failure in initialization: Version mismatch (headers ver is not equal to running hyprland ver)",
CHyprColor{1.0, 0.2, 0.2, 1.0}, 5000);
throw std::runtime_error("[hww] Version mismatch");
Expand Down
5 changes: 3 additions & 2 deletions xtra-dispatchers/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,10 @@ static SDispatchResult closeUnfocused(std::string in) {
APICALL EXPORT PLUGIN_DESCRIPTION_INFO PLUGIN_INIT(HANDLE handle) {
PHANDLE = handle;

const std::string HASH = __hyprland_api_get_hash();
const std::string COMPOSITOR_HASH = __hyprland_api_get_hash();
const std::string CLIENT_HASH = __hyprland_api_get_client_hash();

if (HASH != GIT_COMMIT_HASH) {
if (COMPOSITOR_HASH != CLIENT_HASH) {
HyprlandAPI::addNotification(PHANDLE, "[xtra-dispatchers] Failure in initialization: Version mismatch (headers ver is not equal to running hyprland ver)",
CHyprColor{1.0, 0.2, 0.2, 1.0}, 5000);
throw std::runtime_error("[xtd] Version mismatch");
Expand Down