ungrab on switch

This commit is contained in:
vaxerski 2022-01-26 16:54:19 +01:00
parent d237d4cab4
commit abf3464cfc
1 changed files with 2 additions and 0 deletions

View File

@ -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")));