always use establishTabBoxGrab instead un/grabX*

BUG: 337853
This commit is contained in:
Thomas Lübking 2014-08-11 12:35:14 +02:00
parent 16c432562d
commit d44aedbcac

View file

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