diff --git a/src/debug/HyprCtl.cpp b/src/debug/HyprCtl.cpp index 17b846ba..d4b765e2 100644 --- a/src/debug/HyprCtl.cpp +++ b/src/debug/HyprCtl.cpp @@ -1158,7 +1158,7 @@ std::string dispatchNotify(std::string request) { icon = std::stoi(ICON); } catch (std::exception& e) { return "invalid arg 1"; } - if (icon == -1 || icon > ICON_NONE) { + if (icon > ICON_NONE || icon < 0) { icon = ICON_NONE; }