aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/plugins
diff options
context:
space:
mode:
authorVaxry <[email protected]>2024-02-05 01:43:45 +0000
committerVaxry <[email protected]>2024-02-05 01:56:49 +0000
commit939696f97e2dcfa9ed6b91aa7ddf608c454d49e5 (patch)
treeed86a0d62b2773640a8dbaa1637593c36ab061d7 /src/plugins
parentcbadf3e3f31ab5ad5d192daac5f2ca930d08b8fb (diff)
downloadHyprland-939696f97e2dcfa9ed6b91aa7ddf608c454d49e5.tar.gz
Hyprland-939696f97e2dcfa9ed6b91aa7ddf608c454d49e5.zip
hyprctl: move to a class and unify commands
Diffstat (limited to 'src/plugins')
-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) {