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:
parent
5eb5a60cc5
commit
946038f3c0
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue