From ceecdd0fd511122b7ff4f477a606880fe6599100 Mon Sep 17 00:00:00 2001
From: ItsDrike <itsdrike@protonmail.com>
Date: Fri, 8 Mar 2024 00:34:33 +0100
Subject: [PATCH] hyprctl: Fix incorrect invalid fontsize kwarg response
 (#5013)

---
 src/debug/HyprCtl.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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))