From 923d9eaf2be5c601188c8cf4f4fbb715e507533f Mon Sep 17 00:00:00 2001 From: fluxgen Date: Tue, 19 Aug 2003 16:16:28 +0000 Subject: removed old functions --- src/Workspace.cc | 17 ++--------------- src/Workspace.hh | 8 ++------ 2 files changed, 4 insertions(+), 21 deletions(-) diff --git a/src/Workspace.cc b/src/Workspace.cc index a93f7e0..3023994 100644 --- a/src/Workspace.cc +++ b/src/Workspace.cc @@ -22,7 +22,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Workspace.cc,v 1.79 2003/08/04 16:28:10 fluxgen Exp $ +// $Id: Workspace.cc,v 1.80 2003/08/19 16:16:28 fluxgen Exp $ #include "Workspace.hh" @@ -216,6 +216,7 @@ int Workspace::removeWindow(FluxboxWindow *w) { if (m_lastfocus == w || m_windowlist.empty()) m_lastfocus = 0; + if (!w->isStuck()) { FluxboxWindow::ClientList::iterator client_it = w->clientList().begin(); @@ -389,20 +390,6 @@ void Workspace::update() { } -bool Workspace::isCurrent() const{ - return (m_id == screen().currentWorkspaceID()); -} - - -bool Workspace::isLastWindow(FluxboxWindow *w) const{ - return (w == m_windowlist.back()); -} - -void Workspace::setCurrent() { - screen().changeWorkspaceID(m_id); -} - - void Workspace::setName(const std::string &name) { if (name.size() != 0) { m_name = name; diff --git a/src/Workspace.hh b/src/Workspace.hh index 9784635..466b3a2 100644 --- a/src/Workspace.hh +++ b/src/Workspace.hh @@ -60,7 +60,6 @@ public: void removeAll(); void reconfigure(); void update(); - void setCurrent(); void shutdown(); void addWindow(FluxboxWindow &win, bool place = false); int removeWindow(FluxboxWindow *win); @@ -85,16 +84,13 @@ public: const Windows &windowList() const { return m_windowlist; } Windows &windowList() { return m_windowlist; } - bool isCurrent() const; - bool isLastWindow(FluxboxWindow *window) const; int numberOfWindows() const; bool checkGrouping(FluxboxWindow &win); + static bool loadGroups(const std::string &filename); -protected: - void placeWindow(FluxboxWindow &win); private: - + void placeWindow(FluxboxWindow &win); BScreen &m_screen; FluxboxWindow *m_lastfocus; -- cgit v0.11.2