From 939696f97e2dcfa9ed6b91aa7ddf608c454d49e5 Mon Sep 17 00:00:00 2001 From: Vaxry Date: Mon, 5 Feb 2024 01:43:45 +0000 Subject: hyprctl: move to a class and unify commands --- src/plugins/PluginAPI.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/plugins') diff --git a/src/plugins/PluginAPI.cpp b/src/plugins/PluginAPI.cpp index 283472fa..e6fe6138 100644 --- a/src/plugins/PluginAPI.cpp +++ b/src/plugins/PluginAPI.cpp @@ -50,9 +50,9 @@ APICALL bool HyprlandAPI::unregisterCallback(HANDLE handle, HOOK_CALLBACK_FN* fn APICALL std::string HyprlandAPI::invokeHyprctlCommand(const std::string& call, const std::string& args, const std::string& format) { if (args.empty()) - return HyprCtl::makeDynamicCall(format + "/" + call); + return g_pHyprCtl->makeDynamicCall(format + "/" + call); else - return HyprCtl::makeDynamicCall(format + "/" + call + " " + args); + return g_pHyprCtl->makeDynamicCall(format + "/" + call + " " + args); } APICALL bool HyprlandAPI::addLayout(HANDLE handle, const std::string& name, IHyprLayout* layout) { -- cgit v1.2.3