aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Tiefenbruck <mark@fluxbox.org>2008-08-30 22:45:15 (GMT)
committerMark Tiefenbruck <mark@fluxbox.org>2008-08-30 22:45:15 (GMT)
commit6a72474185a91044894f51c17b84398abc94a123 (patch)
tree5ea0be19d6563324b4ca8d260cebdbfd9de292fc
parent41b2e0ced41580d377ea04a3c1c19408f2d8db13 (diff)
downloadfluxbox-6a72474185a91044894f51c17b84398abc94a123.zip
fluxbox-6a72474185a91044894f51c17b84398abc94a123.tar.bz2
missed one
-rw-r--r--src/SendToMenu.cc9
1 files 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 @@
25#include "Window.hh" 25#include "Window.hh"
26#include "Screen.hh" 26#include "Screen.hh"
27#include "Workspace.hh" 27#include "Workspace.hh"
28#include "WindowCmd.hh"
29#include "fluxbox.hh" 28#include "fluxbox.hh"
30#include "Layer.hh" 29#include "Layer.hh"
31 30
@@ -39,8 +38,8 @@ public:
39 m_workspace(workspace), 38 m_workspace(workspace),
40 m_follow(follow) { } 39 m_follow(follow) { }
41 void execute() { 40 void execute() {
42 if (WindowCmd<void>::window() != 0) 41 if (FbMenu::window() != 0)
43 WindowCmd<void>::window()->screen().sendToWorkspace(m_workspace, WindowCmd<void>::window(), m_follow); 42 FbMenu::window()->screen().sendToWorkspace(m_workspace, FbMenu::window(), m_follow);
44 } 43 }
45private: 44private:
46 const int m_workspace; 45 const int m_workspace;
@@ -90,11 +89,11 @@ void SendToMenu::rebuildMenu() {
90} 89}
91 90
92void SendToMenu::show() { 91void SendToMenu::show() {
93 if (WindowCmd<void>::window() != 0) { 92 if (FbMenu::window() != 0) {
94 for (unsigned int i=0; i < numberOfItems(); ++i) 93 for (unsigned int i=0; i < numberOfItems(); ++i)
95 setItemEnabled(i, true); 94 setItemEnabled(i, true);
96 // update the workspace for the current window 95 // update the workspace for the current window
97 setItemEnabled(WindowCmd<void>::window()->workspaceNumber(), false); 96 setItemEnabled(FbMenu::window()->workspaceNumber(), false);
98 updateMenu(); 97 updateMenu();
99 } 98 }
100 FbTk::Menu::show(); 99 FbTk::Menu::show();