mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-26 16:25:58 +01:00
hyprctl: sanity check icons in notify
This commit is contained in:
parent
86852cdc78
commit
b32af6ebfb
1 changed files with 1 additions and 1 deletions
|
@ -1158,7 +1158,7 @@ std::string dispatchNotify(std::string request) {
|
||||||
icon = std::stoi(ICON);
|
icon = std::stoi(ICON);
|
||||||
} catch (std::exception& e) { return "invalid arg 1"; }
|
} catch (std::exception& e) { return "invalid arg 1"; }
|
||||||
|
|
||||||
if (icon == -1 || icon > ICON_NONE) {
|
if (icon > ICON_NONE || icon < 0) {
|
||||||
icon = ICON_NONE;
|
icon = ICON_NONE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue