summaryrefslogtreecommitdiff
path: root/src/plugins/PluginAPI.cpp
diff options
context:
space:
mode:
authorVaxry <vaxry@vaxry.net>2024-02-05 01:43:45 +0000
committerVaxry <vaxry@vaxry.net>2024-02-05 01:56:49 +0000
commit939696f97e2dcfa9ed6b91aa7ddf608c454d49e5 (patch)
treeed86a0d62b2773640a8dbaa1637593c36ab061d7 /src/plugins/PluginAPI.cpp
parentcbadf3e3f31ab5ad5d192daac5f2ca930d08b8fb (diff)
hyprctl: move to a class and unify commands
Diffstat (limited to 'src/plugins/PluginAPI.cpp')
-rw-r--r--src/plugins/PluginAPI.cpp4
1 files changed, 2 insertions, 2 deletions
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) {