fix crash

This commit is contained in:
Vaxry 2022-08-19 23:22:53 +02:00
parent 223ca6e286
commit 1b1a0259a8

View file

@ -185,9 +185,10 @@ void CInputManager::mouseMoveUnified(uint32_t time, bool refocus) {
} else {
pFoundWindow = g_pCompositor->vectorToWindowIdeal(mouseCoords);
if (refocus && !pFoundWindow) {
pFoundWindow = g_pCompositor->getFirstWindowOnWorkspace(PMONITOR->activeWorkspace);
}
// TODO: this causes crashes, sometimes. ???
// if (refocus && !pFoundWindow) {
// pFoundWindow = g_pCompositor->getFirstWindowOnWorkspace(PMONITOR->activeWorkspace);
// }
}
if (pFoundWindow) {