Move Workspace::activeClient and ::mostRecentlyActivatedClient back to header
Now all is moved they can be inlined again.
This commit is contained in:
parent
fdcaf2b86f
commit
41cd927bce
2 changed files with 10 additions and 10 deletions
|
@ -1666,16 +1666,6 @@ bool Workspace::hasClient(const AbstractClient *c)
|
||||||
return false;
|
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
|
} // namespace
|
||||||
|
|
||||||
#include "workspace.moc"
|
#include "workspace.moc"
|
||||||
|
|
10
workspace.h
10
workspace.h
|
@ -634,6 +634,16 @@ inline bool Workspace::initializing() const
|
||||||
return workspaceInit;
|
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)
|
inline void Workspace::addGroup(Group* group)
|
||||||
{
|
{
|
||||||
emit groupAdded(group);
|
emit groupAdded(group);
|
||||||
|
|
Loading…
Reference in a new issue