aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorVaxry <[email protected]>2024-02-10 17:05:28 +0000
committerVaxry <[email protected]>2024-02-10 17:05:38 +0000
commit658f718fa3b2e08653493a00aeaa670a41d19c8d (patch)
treecef1395d71daddead73b1b68aa59783ef0751ee3
parent334a0f03ee2f80118418c16cc06005a1fe8cfd60 (diff)
downloadHyprland-658f718fa3b2e08653493a00aeaa670a41d19c8d.tar.gz
Hyprland-658f718fa3b2e08653493a00aeaa670a41d19c8d.zip
input: partially revert #4514
issues with refocus in #4649
-rw-r--r--src/managers/input/InputManager.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/managers/input/InputManager.cpp b/src/managers/input/InputManager.cpp
index d0bc402c..44bbaf28 100644
--- a/src/managers/input/InputManager.cpp
+++ b/src/managers/input/InputManager.cpp
@@ -601,12 +601,8 @@ void CInputManager::processMouseDownNormal(wlr_pointer_button_event* e) {
const auto mouseCoords = g_pInputManager->getMouseCoordsInternal();
const auto w = g_pCompositor->vectorToWindowUnified(mouseCoords, ALLOW_FLOATING | RESERVED_EXTENTS | INPUT_EXTENTS);
- if (w && !m_bLastFocusOnLS) {
- if (g_pCompositor->m_pLastWindow != w && *PFOLLOWMOUSE != 3)
- g_pCompositor->focusWindow(w);
- if (w->checkInputOnDecos(INPUT_TYPE_BUTTON, mouseCoords, e))
- return;
- }
+ if (w && !m_bLastFocusOnLS && w->checkInputOnDecos(INPUT_TYPE_BUTTON, mouseCoords, e))
+ return;
// clicking on border triggers resize
// TODO detect click on LS properly