input: improve mouse release conditions
This commit is contained in:
parent
f914a5a06d
commit
b15803510c
2 changed files with 4 additions and 3 deletions
|
|
@ -770,6 +770,8 @@ void CKeybindManager::changeworkspace(std::string args) {
|
|||
|
||||
auto pWorkspaceToChangeTo = g_pCompositor->getWorkspaceByID(PCURRENTWORKSPACE->m_sPrevWorkspace.iID);
|
||||
|
||||
g_pInputManager->releaseAllMouseButtons();
|
||||
|
||||
if (pWorkspaceToChangeTo) {
|
||||
const auto PMONITORWORKSPACEOWNER = PMONITOR->ID == pWorkspaceToChangeTo->m_iMonitorID ? PMONITOR : g_pCompositor->getMonitorFromID(pWorkspaceToChangeTo->m_iMonitorID);
|
||||
|
||||
|
|
@ -814,6 +816,8 @@ void CKeybindManager::changeworkspace(std::string args) {
|
|||
return;
|
||||
}
|
||||
|
||||
g_pInputManager->releaseAllMouseButtons();
|
||||
|
||||
const auto PMONITORWORKSPACEOWNER = PMONITOR->ID == pWorkspaceToChangeTo->m_iMonitorID ? PMONITOR : g_pCompositor->getMonitorFromID(pWorkspaceToChangeTo->m_iMonitorID);
|
||||
|
||||
g_pCompositor->setActiveMonitor(PMONITORWORKSPACEOWNER);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue