internal: use isNumber from hyprutils (#9467)

This commit is contained in:
littleblack111 2025-02-24 01:35:29 +08:00 committed by GitHub
parent 8f50460bfe
commit 2e81648980
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1043,7 +1043,7 @@ SDispatchResult CKeybindManager::killWindow(std::string args) {
}
SDispatchResult CKeybindManager::signalActive(std::string args) {
if (!std::all_of(args.begin(), args.end(), ::isdigit))
if (!isNumber(args))
return {.success = false, .error = "signalActive: signal has to be int"};
try {