ungrab on switch

This commit is contained in:
vaxerski 2022-01-26 16:54:19 +01:00
parent d237d4cab4
commit abf3464cfc

View file

@ -510,6 +510,8 @@ void CWindowManager::setFocusedWindow(xcb_drawable_t window) {
Debug::log(LOG, "Setting focus to " + std::to_string(window)); Debug::log(LOG, "Setting focus to " + std::to_string(window));
xcb_ungrab_pointer(DisplayConnection, XCB_CURRENT_TIME);
// border color // border color
if (const auto PLASTWIN = getWindowFromDrawable(LastWindow); PLASTWIN) { if (const auto PLASTWIN = getWindowFromDrawable(LastWindow); PLASTWIN) {
PLASTWIN->setEffectiveBorderColor(CFloatingColor(ConfigManager::getInt("col.inactive_border"))); PLASTWIN->setEffectiveBorderColor(CFloatingColor(ConfigManager::getInt("col.inactive_border")));