diff options
author | Mark Tiefenbruck <mark@fluxbox.org> | 2008-08-30 22:45:15 (GMT) |
---|---|---|
committer | Mark Tiefenbruck <mark@fluxbox.org> | 2008-08-30 22:45:15 (GMT) |
commit | 6a72474185a91044894f51c17b84398abc94a123 (patch) | |
tree | 5ea0be19d6563324b4ca8d260cebdbfd9de292fc /src | |
parent | 41b2e0ced41580d377ea04a3c1c19408f2d8db13 (diff) | |
download | fluxbox-6a72474185a91044894f51c17b84398abc94a123.zip fluxbox-6a72474185a91044894f51c17b84398abc94a123.tar.bz2 |
missed one
Diffstat (limited to 'src')
-rw-r--r-- | src/SendToMenu.cc | 9 |
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 | } |
45 | private: | 44 | private: |
46 | const int m_workspace; | 45 | const int m_workspace; |
@@ -90,11 +89,11 @@ void SendToMenu::rebuildMenu() { | |||
90 | } | 89 | } |
91 | 90 | ||
92 | void SendToMenu::show() { | 91 | void 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(); |