mirror of
https://github.com/hyprwm/Hyprland
synced 2024-12-23 01:49:50 +01:00
Minor tweaks
This commit is contained in:
parent
5f3ee176a1
commit
304b93a4f6
2 changed files with 5 additions and 1 deletions
|
@ -713,7 +713,7 @@ CWindow* CCompositor::getNextWindowOnWorkspace(CWindow* pWindow) {
|
||||||
int CCompositor::getNextAvailableNamedWorkspace() {
|
int CCompositor::getNextAvailableNamedWorkspace() {
|
||||||
int lowest = -1337 + 1;
|
int lowest = -1337 + 1;
|
||||||
for (auto& w : m_lWorkspaces) {
|
for (auto& w : m_lWorkspaces) {
|
||||||
if (w.m_iID < 0 && w.m_iID < lowest)
|
if (w.m_iID < -1 && w.m_iID < lowest)
|
||||||
lowest = w.m_iID;
|
lowest = w.m_iID;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -85,6 +85,8 @@ std::string dispatchRequest(std::string in) {
|
||||||
|
|
||||||
DISPATCHER->second(DISPATCHARG);
|
DISPATCHER->second(DISPATCHARG);
|
||||||
|
|
||||||
|
Debug::log(LOG, "Hyprctl: dispatcher %s : %s", DISPATCHSTR.c_str(), DISPATCHARG.c_str());
|
||||||
|
|
||||||
return "ok";
|
return "ok";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -101,6 +103,8 @@ std::string dispatchKeyword(std::string in) {
|
||||||
if (COMMAND == "monitor")
|
if (COMMAND == "monitor")
|
||||||
g_pConfigManager->m_bWantsMonitorReload = true; // for monitor keywords
|
g_pConfigManager->m_bWantsMonitorReload = true; // for monitor keywords
|
||||||
|
|
||||||
|
Debug::log(LOG, "Hyprctl: keyword %s : %s", COMMAND.c_str(), VALUE.c_str());
|
||||||
|
|
||||||
if (retval == "")
|
if (retval == "")
|
||||||
return "ok";
|
return "ok";
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue