summaryrefslogtreecommitdiff
path: root/src/managers/InputManager.cpp
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2022-04-01 23:34:19 +0200
committervaxerski <43317083+vaxerski@users.noreply.github.com>2022-04-01 23:34:19 +0200
commitca2459e56331d7522a5e05bb258e06ad30388968 (patch)
treeabbfe9e51dbbacacaefe297f15cebb8e501da224 /src/managers/InputManager.cpp
parentbefddca16ddde88ded7a2ed516fa8afcb418e875 (diff)
Do not refocus on pressed mouse
Diffstat (limited to 'src/managers/InputManager.cpp')
-rw-r--r--src/managers/InputManager.cpp2
1 files changed, 0 insertions, 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;