From 1b50377a5aaa8d5e2585d72dc5393ac6ad6fe248 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Mon, 21 Mar 2022 18:34:49 +0100 Subject: [PATCH] R> is redundant --- hyprctl/main.cpp | 6 +++--- src/debug/HyprCtl.cpp | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/hyprctl/main.cpp b/hyprctl/main.cpp index 41c4e27b..047b409f 100644 --- a/hyprctl/main.cpp +++ b/hyprctl/main.cpp @@ -102,9 +102,9 @@ int main(int argc, char** argv) { return 1; } - if (!strcmp(argv[1], "monitors")) request("R>monitors"); - else if (!strcmp(argv[1], "clients")) request("R>clients"); - else if (!strcmp(argv[1], "workspaces")) request("R>workspaces"); + if (!strcmp(argv[1], "monitors")) request("monitors"); + else if (!strcmp(argv[1], "clients")) request("clients"); + else if (!strcmp(argv[1], "workspaces")) request("workspaces"); else { printf(USAGE.c_str()); return 1; diff --git a/src/debug/HyprCtl.cpp b/src/debug/HyprCtl.cpp index 56319e53..67b38a9a 100644 --- a/src/debug/HyprCtl.cpp +++ b/src/debug/HyprCtl.cpp @@ -97,9 +97,9 @@ void HyprCtl::startHyprCtlSocket() { std::string request(readBuffer); std::string reply = ""; - if (request == "R>monitors") reply = monitorsRequest(); - if (request == "R>workspaces") reply = workspacesRequest(); - if (request == "R>clients") reply = clientsRequest(); + if (request == "monitors") reply = monitorsRequest(); + if (request == "workspaces") reply = workspacesRequest(); + if (request == "clients") reply = clientsRequest(); write(ACCEPTEDCONNECTION, reply.c_str(), reply.length());