Only prefer current tabgroup if it's shown

BUG: 315956
FIXED-IN:4.10.2
This commit is contained in:
Thomas Lübking 2013-03-01 21:08:16 +01:00
parent a9bd8924f8
commit 1bc2d7d3b7

View file

@ -458,7 +458,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();