fix yet another fun-with-pointers tabbing segfault

BUG: 281596
(cherry picked from commit f3ca7234ef4329b45bcd369aa49a70972a754302)
icc-effect-5.14.5
Thomas Lübking 2011-09-08 22:19:41 +02:00
parent 6cd271598e
commit c071056913
1 changed files with 1 additions and 1 deletions

View File

@ -320,7 +320,7 @@ bool Client::manage(Window w, bool isMapped)
if (!noBorder()) { if (!noBorder()) {
client_group = NULL; client_group = NULL;
// Automatically add to previous groups on session restore // Automatically add to previous groups on session restore
if (session && session->clientGroupClient && session->clientGroupClient != this) if (session && session->clientGroupClient && session->clientGroupClient != this && session->clientGroupClient->clientGroup())
session->clientGroupClient->clientGroup()->add(this, -1, true); session->clientGroupClient->clientGroup()->add(this, -1, true);
else if (isMapped) else if (isMapped)
// If the window is already mapped (Restarted KWin) add any windows that already have the // If the window is already mapped (Restarted KWin) add any windows that already have the