diff --git a/src/Compositor.cpp b/src/Compositor.cpp index 94d041297..0e07829fa 100644 --- a/src/Compositor.cpp +++ b/src/Compositor.cpp @@ -713,7 +713,7 @@ CWindow* CCompositor::getNextWindowOnWorkspace(CWindow* pWindow) { int CCompositor::getNextAvailableNamedWorkspace() { int lowest = -1337 + 1; 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; } diff --git a/src/debug/HyprCtl.cpp b/src/debug/HyprCtl.cpp index 1325f5574..2c45c6636 100644 --- a/src/debug/HyprCtl.cpp +++ b/src/debug/HyprCtl.cpp @@ -85,6 +85,8 @@ std::string dispatchRequest(std::string in) { DISPATCHER->second(DISPATCHARG); + Debug::log(LOG, "Hyprctl: dispatcher %s : %s", DISPATCHSTR.c_str(), DISPATCHARG.c_str()); + return "ok"; } @@ -101,6 +103,8 @@ std::string dispatchKeyword(std::string in) { if (COMMAND == "monitor") g_pConfigManager->m_bWantsMonitorReload = true; // for monitor keywords + Debug::log(LOG, "Hyprctl: keyword %s : %s", COMMAND.c_str(), VALUE.c_str()); + if (retval == "") return "ok";