check whether SessionInfo::tabGroupClient is (still) in workspace before using it
BUG: 301456 FIXED-IN: 4.9 REVIEW: 105186
This commit is contained in:
parent
3f30a7d6fb
commit
0bf8e0cc80
1 changed files with 2 additions and 0 deletions
|
@ -312,6 +312,8 @@ bool Client::manage(Window w, bool isMapped)
|
|||
const bool autogrouping = rules()->checkAutogrouping(options->isAutogroupSimilarWindows());
|
||||
const bool autogroupInFg = rules()->checkAutogroupInForeground(options->isAutogroupInForeground());
|
||||
// Automatically add to previous groups on session restore
|
||||
if (session && session->tabGroupClient && !workspace()->hasClient(session->tabGroupClient))
|
||||
session->tabGroupClient = NULL;
|
||||
if (session && session->tabGroupClient && session->tabGroupClient != this) {
|
||||
tabBehind(session->tabGroupClient, autogroupInFg);
|
||||
} else if (isMapped && autogrouping) {
|
||||
|
|
Loading…
Reference in a new issue