missed one
This commit is contained in:
parent
41b2e0ced4
commit
6a72474185
1 changed files with 4 additions and 5 deletions
|
@ -25,7 +25,6 @@
|
||||||
#include "Window.hh"
|
#include "Window.hh"
|
||||||
#include "Screen.hh"
|
#include "Screen.hh"
|
||||||
#include "Workspace.hh"
|
#include "Workspace.hh"
|
||||||
#include "WindowCmd.hh"
|
|
||||||
#include "fluxbox.hh"
|
#include "fluxbox.hh"
|
||||||
#include "Layer.hh"
|
#include "Layer.hh"
|
||||||
|
|
||||||
|
@ -39,8 +38,8 @@ public:
|
||||||
m_workspace(workspace),
|
m_workspace(workspace),
|
||||||
m_follow(follow) { }
|
m_follow(follow) { }
|
||||||
void execute() {
|
void execute() {
|
||||||
if (WindowCmd<void>::window() != 0)
|
if (FbMenu::window() != 0)
|
||||||
WindowCmd<void>::window()->screen().sendToWorkspace(m_workspace, WindowCmd<void>::window(), m_follow);
|
FbMenu::window()->screen().sendToWorkspace(m_workspace, FbMenu::window(), m_follow);
|
||||||
}
|
}
|
||||||
private:
|
private:
|
||||||
const int m_workspace;
|
const int m_workspace;
|
||||||
|
@ -90,11 +89,11 @@ void SendToMenu::rebuildMenu() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void SendToMenu::show() {
|
void SendToMenu::show() {
|
||||||
if (WindowCmd<void>::window() != 0) {
|
if (FbMenu::window() != 0) {
|
||||||
for (unsigned int i=0; i < numberOfItems(); ++i)
|
for (unsigned int i=0; i < numberOfItems(); ++i)
|
||||||
setItemEnabled(i, true);
|
setItemEnabled(i, true);
|
||||||
// update the workspace for the current window
|
// update the workspace for the current window
|
||||||
setItemEnabled(WindowCmd<void>::window()->workspaceNumber(), false);
|
setItemEnabled(FbMenu::window()->workspaceNumber(), false);
|
||||||
updateMenu();
|
updateMenu();
|
||||||
}
|
}
|
||||||
FbTk::Menu::show();
|
FbTk::Menu::show();
|
||||||
|
|
Loading…
Reference in a new issue