From 41cd927bce2f907e83cdaa36dda44d0d38f30f66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Thu, 12 Mar 2015 12:11:42 +0100 Subject: [PATCH] Move Workspace::activeClient and ::mostRecentlyActivatedClient back to header Now all is moved they can be inlined again. --- workspace.cpp | 10 ---------- workspace.h | 10 ++++++++++ 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/workspace.cpp b/workspace.cpp index 6cdee243bf..8adbb4a329 100644 --- a/workspace.cpp +++ b/workspace.cpp @@ -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" diff --git a/workspace.h b/workspace.h index d5c551ac5e..7f42121f18 100644 --- a/workspace.h +++ b/workspace.h @@ -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);