From 5febf6c902516a578004a2df336a16c98bcc45f7 Mon Sep 17 00:00:00 2001 From: fluxgen Date: Tue, 30 Dec 2003 18:16:51 +0000 Subject: minor cleaning --- src/Workspace.cc | 7 +++---- src/WorkspaceCmd.cc | 7 ++++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/Workspace.cc b/src/Workspace.cc index 74c5850..8e8df5b 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.88 2003/12/18 18:03:22 fluxgen Exp $ +// $Id: Workspace.cc,v 1.89 2003/12/30 18:16:51 fluxgen Exp $ #include "Workspace.hh" @@ -32,8 +32,8 @@ #include "Window.hh" #include "WinClient.hh" #include "FbWinFrame.hh" -#include "MenuItem.hh" +#include "FbTk/MenuItem.hh" #include "FbTk/StringUtil.hh" // use GNU extensions @@ -143,8 +143,7 @@ void Workspace::setLastFocusedWindow(FluxboxWindow *win) { void Workspace::addWindow(FluxboxWindow &w, bool place) { // we don't need to add a window that already exist in our list - if (find(m_windowlist.begin(), m_windowlist.end(), &w) != - m_windowlist.end()) + if (find(m_windowlist.begin(), m_windowlist.end(), &w) != m_windowlist.end()) return; w.setWorkspace(m_id); diff --git a/src/WorkspaceCmd.cc b/src/WorkspaceCmd.cc index 40c1053..a0132ee 100644 --- a/src/WorkspaceCmd.cc +++ b/src/WorkspaceCmd.cc @@ -20,7 +20,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: WorkspaceCmd.cc,v 1.8 2003/12/03 17:55:13 fluxgen Exp $ +// $Id: WorkspaceCmd.cc,v 1.9 2003/12/30 18:15:55 fluxgen Exp $ #include "WorkspaceCmd.hh" @@ -34,6 +34,7 @@ #include #include #include +#include void NextWindowCmd::execute() { @@ -42,7 +43,7 @@ void NextWindowCmd::execute() { Fluxbox *fb = Fluxbox::instance(); // special case for commands from key events if (fb->lastEvent().type == KeyPress) { - unsigned int mods = FbTk::KeyUtil::cleanMods(fb->lastEvent().xkey.state); + unsigned int mods = FbTk::KeyUtil::instance().cleanMods(fb->lastEvent().xkey.state); if (mods == 0) // can't stacked cycle unless there is a mod to grab screen->nextFocus(m_option | BScreen::CYCLELINEAR); else { @@ -63,7 +64,7 @@ void PrevWindowCmd::execute() { Fluxbox *fb = Fluxbox::instance(); // special case for commands from key events if (fb->lastEvent().type == KeyPress) { - unsigned int mods = FbTk::KeyUtil::cleanMods(fb->lastEvent().xkey.state); + unsigned int mods = FbTk::KeyUtil::instance().cleanMods(fb->lastEvent().xkey.state); if (mods == 0) // can't stacked cycle unless there is a mod to grab screen->prevFocus(m_option | BScreen::CYCLELINEAR); else { -- cgit v0.11.2