activity associations are saved with kwin's session
svn path=/trunk/KDE/kdebase/workspace/; revision=1181900
This commit is contained in:
parent
25d7b58620
commit
ac91cd2195
3 changed files with 4 additions and 0 deletions
|
@ -167,6 +167,7 @@ bool Client::manage( Window w, bool isMapped )
|
|||
desk = session->desktop;
|
||||
if( session->onAllDesktops )
|
||||
desk = NET::OnAllDesktops;
|
||||
setOnActivities(session->activities);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
2
sm.cpp
2
sm.cpp
|
@ -145,6 +145,7 @@ void Workspace::storeSession( KConfig* config, SMSavePhase phase )
|
|||
// KConfig doesn't support long so we need to live with less precision on 64-bit systems
|
||||
static_cast<int>( reinterpret_cast<long>( c->clientGroup() )) : 0;
|
||||
cg.writeEntry( QString("clientGroup")+n, group );
|
||||
cg.writeEntry( QString("activities")+n, c->activities() );
|
||||
}
|
||||
}
|
||||
if( phase == SMSavePhase0 )
|
||||
|
@ -217,6 +218,7 @@ void Workspace::loadSessionInfo()
|
|||
info->stackingOrder = cg.readEntry( QString("stackingOrder")+n, -1 );
|
||||
info->clientGroup = cg.readEntry( QString("clientGroup")+n, 0 );
|
||||
info->clientGroupClient = NULL;
|
||||
info->activities = cg.readEntry( QString("activities")+n, QStringList() );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
1
sm.h
1
sm.h
|
@ -68,6 +68,7 @@ struct SessionInfo
|
|||
int clientGroup; // Unique identifier for the client group that this window is in
|
||||
|
||||
Client* clientGroupClient; // The first client created that has an identical identifier
|
||||
QStringList activities;
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue