summaryrefslogtreecommitdiff
path: root/src/managers/KeybindManager.cpp
diff options
context:
space:
mode:
authorUserSv4 <user.sv4@gmail.com>2023-08-11 19:27:09 +0400
committerGitHub <noreply@github.com>2023-08-11 17:27:09 +0200
commit8a7ce59ad405adee5d701b6a5be67dd45b5a24bd (patch)
tree3ba3d50e26149e31b949cc7a59dc50be2846fd19 /src/managers/KeybindManager.cpp
parent60b548296d9465c77a3f96f01305df5b83084903 (diff)
internal: Fix grouped windows not being properly focused on activation (#2925)
* Fix grouped windows not being properly focused on activation This bug could happen if you: 1. Open two Chromium windows in a single group 2. Open some tabs in both of the windows 3. Using tabs search (Ctrl+Shift+A) try to switch to a tab in the second window from the first one. When this happens any window focus would be lost (hyprctl activewindow starts to output "Invalid") and also the mouse cursor would become centered relatively to the second window. * Update Compositor.cpp
Diffstat (limited to 'src/managers/KeybindManager.cpp')
-rw-r--r--src/managers/KeybindManager.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/managers/KeybindManager.cpp b/src/managers/KeybindManager.cpp
index f54e1e5f..6956c697 100644
--- a/src/managers/KeybindManager.cpp
+++ b/src/managers/KeybindManager.cpp
@@ -1712,11 +1712,6 @@ void CKeybindManager::focusWindow(std::string regexp) {
changeworkspace(PWORKSPACE->getConfigName());
}
- if (PWINDOW->isHidden() && PWINDOW->m_sGroupData.pNextWindow) {
- // grouped, change the current to us
- PWINDOW->setGroupCurrent(PWINDOW);
- }
-
g_pCompositor->focusWindow(PWINDOW);
const auto MIDPOINT = PWINDOW->m_vRealPosition.goalv() + PWINDOW->m_vRealSize.goalv() / 2.f;