diff options
Diffstat (limited to 'src/Compositor.cpp')
| -rw-r--r-- | src/Compositor.cpp | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/src/Compositor.cpp b/src/Compositor.cpp index 0b60369d..4239c7bf 100644 --- a/src/Compositor.cpp +++ b/src/Compositor.cpp @@ -936,4 +936,21 @@ void CCompositor::updateWindowBorderColor(CWindow* pWindow) { pWindow->m_cRealBorderColor = RENDERDATA.borderColor; else pWindow->m_cRealBorderColor = CColor(pWindow == m_pLastWindow ? *ACTIVECOL : *INACTIVECOL); -}
\ No newline at end of file +} + +void CCompositor::moveWindowToWorkspace(CWindow* pWindow, const std::string& work) { + m_pLastWindow = pWindow; + g_pKeybindManager->moveActiveToWorkspace(work); + + g_pInputManager->refocus(); +} + +int CCompositor::getNextAvailableMonitorID() { + int64_t topID = -1; + for (auto& m : m_lMonitors) { + if ((int64_t)m.ID > topID) + topID = m.ID; + } + + return topID + 1; +} |
