input: don't steal mouseDown from LS (#4260)

modified:   src/managers/input/InputManager.cpp
This commit is contained in:
MightyPlaza 2023-12-27 10:44:13 +00:00 committed by GitHub
parent 1ecd173c7a
commit 6cd82d948f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -606,7 +606,7 @@ void CInputManager::processMouseDownNormal(wlr_pointer_button_event* e) {
const auto mouseCoords = g_pInputManager->getMouseCoordsInternal();
const auto w = g_pCompositor->vectorToWindowIdeal(mouseCoords);
if (w && !w->m_bIsFullscreen && !w->hasPopupAt(mouseCoords)) {
if (w && !w->m_bIsFullscreen && !m_bLastFocusOnLS && !w->hasPopupAt(mouseCoords)) {
for (auto& wd : w->m_dWindowDecorations) {
if (!(wd->getDecorationFlags() & DECORATION_ALLOWS_MOUSE_INPUT))
continue;