summaryrefslogtreecommitdiff
path: root/src/debug
diff options
context:
space:
mode:
authorItsDrike <itsdrike@protonmail.com>2024-03-08 00:34:33 +0100
committerGitHub <noreply@github.com>2024-03-07 23:34:33 +0000
commitceecdd0fd511122b7ff4f477a606880fe6599100 (patch)
tree0ff0d9e88c0d731de7a44cdacc4cad8d943d9dfb /src/debug
parent6c4e2489a0a153ac2a92744ecb2985280c97fc89 (diff)
hyprctl: Fix incorrect invalid fontsize kwarg response (#5013)
Diffstat (limited to 'src/debug')
-rw-r--r--src/debug/HyprCtl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/debug/HyprCtl.cpp b/src/debug/HyprCtl.cpp
index 332e3969..c6864573 100644
--- a/src/debug/HyprCtl.cpp
+++ b/src/debug/HyprCtl.cpp
@@ -1459,7 +1459,7 @@ std::string dispatchNotify(eHyprCtlOutputFormat format, std::string request) {
size_t msgidx = 4;
float fontsize = 13.f;
- if (vars[msgidx].length() > 9 && vars[msgidx].compare(0, 10, "fontsize:")) {
+ if (vars[msgidx].length() > 9 && vars[msgidx].compare(0, 9, "fontsize:") == 0) {
const auto FONTSIZE = vars[msgidx].substr(9);
if (!isNumber(FONTSIZE, true))