hyprctl: Fix incorrect invalid fontsize kwarg response (#5013)

This commit is contained in:
ItsDrike 2024-03-08 00:34:33 +01:00 committed by GitHub
parent 6c4e2489a0
commit ceecdd0fd5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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