Add notification for failed function hook

This commit is contained in:
outfoxxed 2023-04-27 11:36:24 -07:00
parent e57d1aec4c
commit ec783b0480
No known key found for this signature in database
GPG key ID: 4C88A185FB89301E

View file

@ -26,6 +26,12 @@ void setup_selection_hook() {
if (decoUpdateCandidates.size() != 1) {
Debug::log(ERR, "Expected one matching function to hook for \"updateWindowAnimatedDecorationValues\", found %d", decoUpdateCandidates.size());
HyprlandAPI::addNotificationV2(PHANDLE, {
{"text", "Failed to load function hooks: \"updateWindowAnimatedDecorationValues\""},
{"time", (uint64_t)10000},
{"color", CColor(1.0, 0.0, 0.0, 1.0)},
{"icon", ICON_ERROR},
});
return;
}