Only prefer current tabgroup if it's shown

BUG: 315956
FIXED-IN:4.10.2
icc-effect-5.14.5
Thomas Lübking 2013-03-01 21:08:16 +01:00
parent 39499de9cc
commit b65246dcef
1 changed files with 1 additions and 1 deletions

View File

@ -453,7 +453,7 @@ bool Workspace::activateNextClient(Client* c)
Client* get_focus = NULL;
// precedence on keeping the current tabgroup active. to the user that's the same window
if (c && c->tabGroup()) {
if (c && c->tabGroup() && c->isShown(false)) {
if (c == c->tabGroup()->current())
c->tabGroup()->activateNext();
get_focus = c->tabGroup()->current();