From ca2459e56331d7522a5e05bb258e06ad30388968 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Fri, 1 Apr 2022 23:34:19 +0200 Subject: [PATCH] Do not refocus on pressed mouse --- src/managers/InputManager.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/managers/InputManager.cpp b/src/managers/InputManager.cpp index 1ab991d3..e7723fbb 100644 --- a/src/managers/InputManager.cpp +++ b/src/managers/InputManager.cpp @@ -109,8 +109,6 @@ void CInputManager::onMouseButton(wlr_pointer_button_event* e) { switch (e->state) { case WLR_BUTTON_PRESSED: - refocus(); - if ((e->button == BTN_LEFT || e->button == BTN_RIGHT) && wlr_keyboard_get_modifiers(PKEYBOARD) == (uint32_t)g_pConfigManager->getInt("general:main_mod_internal")) { currentlyDraggedWindow = g_pCompositor->windowFloatingFromCursor(); dragButton = e->button;