all repos — fluxbox @ 6a72474185a91044894f51c17b84398abc94a123

custom fork of the fluxbox windowmanager

missed one
Mark Tiefenbruck mark@fluxbox.org
commit

6a72474185a91044894f51c17b84398abc94a123

parent

41b2e0ced41580d377ea04a3c1c19408f2d8db13

1 files changed, 4 insertions(+), 5 deletions(-)

jump to
M src/SendToMenu.ccsrc/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 @@ SendToCmd(int workspace, bool follow):

m_workspace(workspace), m_follow(follow) { } void execute() { - if (WindowCmd<void>::window() != 0) - WindowCmd<void>::window()->screen().sendToWorkspace(m_workspace, WindowCmd<void>::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 @@ updateMenu();

} void SendToMenu::show() { - if (WindowCmd<void>::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<void>::window()->workspaceNumber(), false); + setItemEnabled(FbMenu::window()->workspaceNumber(), false); updateMenu(); } FbTk::Menu::show();