From abf3464cfcafd310d14f493a5821584d96c2be79 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Wed, 26 Jan 2022 16:54:19 +0100 Subject: [PATCH] ungrab on switch --- src/windowManager.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/windowManager.cpp b/src/windowManager.cpp index 8f74c25..1d2b5a5 100644 --- a/src/windowManager.cpp +++ b/src/windowManager.cpp @@ -510,6 +510,8 @@ void CWindowManager::setFocusedWindow(xcb_drawable_t window) { Debug::log(LOG, "Setting focus to " + std::to_string(window)); + xcb_ungrab_pointer(DisplayConnection, XCB_CURRENT_TIME); + // border color if (const auto PLASTWIN = getWindowFromDrawable(LastWindow); PLASTWIN) { PLASTWIN->setEffectiveBorderColor(CFloatingColor(ConfigManager::getInt("col.inactive_border")));