diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-04-21 21:48:37 +0200 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-04-21 21:48:37 +0200 |
| commit | 304b93a4f609054bb453f89eb38894809a888b38 (patch) | |
| tree | 6a62cd1b4c28a2826bde7870a174e6cc19457457 /src | |
| parent | 5f3ee176a1f9dcbe6b3309762016c1a7524430f0 (diff) | |
Minor tweaks
Diffstat (limited to 'src')
| -rw-r--r-- | src/Compositor.cpp | 2 | ||||
| -rw-r--r-- | src/debug/HyprCtl.cpp | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/Compositor.cpp b/src/Compositor.cpp index 94d04129..0e07829f 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 1325f557..2c45c663 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"; |
