Move Workspace::activeClient and ::mostRecentlyActivatedClient back to header

Now all is moved they can be inlined again.
icc-effect-5.14.5
Martin Gräßlin 2015-03-12 12:11:42 +01:00
parent fdcaf2b86f
commit 41cd927bce
2 changed files with 10 additions and 10 deletions

View File

@ -1666,16 +1666,6 @@ bool Workspace::hasClient(const AbstractClient *c)
return false;
}
AbstractClient *Workspace::activeClient() const
{
return active_client;
}
AbstractClient *Workspace::mostRecentlyActivatedClient() const
{
return should_get_focus.count() > 0 ? should_get_focus.last() : active_client;
}
} // namespace
#include "workspace.moc"

View File

@ -634,6 +634,16 @@ inline bool Workspace::initializing() const
return workspaceInit;
}
inline AbstractClient *Workspace::activeClient() const
{
return active_client;
}
inline AbstractClient *Workspace::mostRecentlyActivatedClient() const
{
return should_get_focus.count() > 0 ? should_get_focus.last() : active_client;
}
inline void Workspace::addGroup(Group* group)
{
emit groupAdded(group);