diff --git a/tabbox/tabbox.cpp b/tabbox/tabbox.cpp index b4ccbde30e..5a2d7e26f3 100644 --- a/tabbox/tabbox.cpp +++ b/tabbox/tabbox.cpp @@ -1091,11 +1091,10 @@ bool TabBox::toggle(ElectricBorder eb) if (!options->focusPolicyIsReasonable()) return false; // not supported. if (isDisplayed()) { - ungrabXKeyboard(); accept(); return true; } - if (!grabXKeyboard()) + if (!establishTabBoxGrab()) return false; m_noModifierGrab = m_tabGrab = true; if (m_borderAlternativeActivate.contains(eb))