summaryrefslogtreecommitdiff
path: root/src/debug/HyprCtl.cpp
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2022-10-30 22:45:03 +0000
committervaxerski <43317083+vaxerski@users.noreply.github.com>2022-10-30 22:45:03 +0000
commit989deafd5e2b7962e9eb27bb3ec0cd7ee9dd107b (patch)
treec6b8239316d3f887613b1cfd232d28d768a40316 /src/debug/HyprCtl.cpp
parent9f1d7f7fc709ae3360f7ec229e9fd1e32b894ace (diff)
use lld instead of i in hyprctl getopt for accurate int reads
Diffstat (limited to 'src/debug/HyprCtl.cpp')
-rw-r--r--src/debug/HyprCtl.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/debug/HyprCtl.cpp b/src/debug/HyprCtl.cpp
index b43666fe..494efcd4 100644
--- a/src/debug/HyprCtl.cpp
+++ b/src/debug/HyprCtl.cpp
@@ -728,13 +728,13 @@ std::string dispatchGetOption(std::string request, HyprCtl::eHyprCtlOutputFormat
return "no such option";
if (format == HyprCtl::eHyprCtlOutputFormat::FORMAT_NORMAL)
- return getFormat("option %s\n\tint: %i\n\tfloat: %f\n\tstr: \"%s\"", curitem.c_str(), PCFGOPT->intValue, PCFGOPT->floatValue, PCFGOPT->strValue.c_str());
+ return getFormat("option %s\n\tint: %lld\n\tfloat: %f\n\tstr: \"%s\"", curitem.c_str(), PCFGOPT->intValue, PCFGOPT->floatValue, PCFGOPT->strValue.c_str());
else {
return getFormat(
R"#(
{
"option": "%s",
- "int": %i,
+ "int": %lld,
"float": %f,
"str": "%s"
}