Use isDisplayed instead of isGrabbed to check if TabBox is shown

IsDisplayed also works in non-modal mode. IsGrabbed was just legacy.
This commit is contained in:
Martin Gräßlin 2011-12-01 11:06:19 +01:00
parent 5eb5a60cc5
commit 946038f3c0

View file

@ -638,7 +638,7 @@ void Workspace::addClient(Client* c, allowed_t)
updateToolWindows(true);
checkNonExistentClients();
#ifdef KWIN_BUILD_TABBOX
if (tabBox()->isGrabbed())
if (tabBox()->isDisplayed())
tab_box->reset(true);
#endif
}
@ -672,7 +672,7 @@ void Workspace::removeClient(Client* c, allowed_t)
Notify::raise(Notify::Delete);
#ifdef KWIN_BUILD_TABBOX
if (tabBox()->isGrabbed() && tabBox()->currentClient() == c)
if (tabBox()->isDisplayed() && tabBox()->currentClient() == c)
tab_box->nextPrev(true);
#endif
@ -708,7 +708,7 @@ void Workspace::removeClient(Client* c, allowed_t)
updateCompositeBlocking();
#ifdef KWIN_BUILD_TABBOX
if (tabBox()->isGrabbed())
if (tabBox()->isDisplayed())
tab_box->reset(true);
#endif