mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-22 19:26:00 +01:00
R> is redundant
This commit is contained in:
parent
509f0c9a8a
commit
1b50377a5a
2 changed files with 6 additions and 6 deletions
|
@ -102,9 +102,9 @@ int main(int argc, char** argv) {
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!strcmp(argv[1], "monitors")) request("R>monitors");
|
if (!strcmp(argv[1], "monitors")) request("monitors");
|
||||||
else if (!strcmp(argv[1], "clients")) request("R>clients");
|
else if (!strcmp(argv[1], "clients")) request("clients");
|
||||||
else if (!strcmp(argv[1], "workspaces")) request("R>workspaces");
|
else if (!strcmp(argv[1], "workspaces")) request("workspaces");
|
||||||
else {
|
else {
|
||||||
printf(USAGE.c_str());
|
printf(USAGE.c_str());
|
||||||
return 1;
|
return 1;
|
||||||
|
|
|
@ -97,9 +97,9 @@ void HyprCtl::startHyprCtlSocket() {
|
||||||
std::string request(readBuffer);
|
std::string request(readBuffer);
|
||||||
|
|
||||||
std::string reply = "";
|
std::string reply = "";
|
||||||
if (request == "R>monitors") reply = monitorsRequest();
|
if (request == "monitors") reply = monitorsRequest();
|
||||||
if (request == "R>workspaces") reply = workspacesRequest();
|
if (request == "workspaces") reply = workspacesRequest();
|
||||||
if (request == "R>clients") reply = clientsRequest();
|
if (request == "clients") reply = clientsRequest();
|
||||||
|
|
||||||
write(ACCEPTEDCONNECTION, reply.c_str(), reply.length());
|
write(ACCEPTEDCONNECTION, reply.c_str(), reply.length());
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue