From 6a72474185a91044894f51c17b84398abc94a123 Mon Sep 17 00:00:00 2001 From: Mark Tiefenbruck Date: Sat, 30 Aug 2008 18:45:15 -0400 Subject: missed one --- src/SendToMenu.cc | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/SendToMenu.cc b/src/SendToMenu.cc index 8ec2094..2362eb2 100644 --- a/src/SendToMenu.cc +++ b/src/SendToMenu.cc @@ -25,7 +25,6 @@ #include "Window.hh" #include "Screen.hh" #include "Workspace.hh" -#include "WindowCmd.hh" #include "fluxbox.hh" #include "Layer.hh" @@ -39,8 +38,8 @@ public: m_workspace(workspace), m_follow(follow) { } void execute() { - if (WindowCmd::window() != 0) - WindowCmd::window()->screen().sendToWorkspace(m_workspace, WindowCmd::window(), m_follow); + if (FbMenu::window() != 0) + FbMenu::window()->screen().sendToWorkspace(m_workspace, FbMenu::window(), m_follow); } private: const int m_workspace; @@ -90,11 +89,11 @@ void SendToMenu::rebuildMenu() { } void SendToMenu::show() { - if (WindowCmd::window() != 0) { + if (FbMenu::window() != 0) { for (unsigned int i=0; i < numberOfItems(); ++i) setItemEnabled(i, true); // update the workspace for the current window - setItemEnabled(WindowCmd::window()->workspaceNumber(), false); + setItemEnabled(FbMenu::window()->workspaceNumber(), false); updateMenu(); } FbTk::Menu::show(); -- cgit v0.11.2