diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2023-04-08 18:53:54 +0100 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2023-04-08 18:53:54 +0100 |
| commit | b32af6ebfb5ea3ffc16cbf07a6cdbaa6c486ba58 (patch) | |
| tree | 5508b87e635085f8aba86c2f4842ceb9892fd5fc /src | |
| parent | 86852cdc78b833ae405b6161f639424787a825e4 (diff) | |
hyprctl: sanity check icons in notify
Diffstat (limited to 'src')
| -rw-r--r-- | src/debug/HyprCtl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |
