4
#include "FbTk/Command.hh"
7
/// holds context for WindowCmd
10
static void setWindow(FluxboxWindow *win) { s_win = win; }
11
static FluxboxWindow *window() { return s_win; }
13
static FluxboxWindow *s_win;
17
/// executes action for a dynamic context set in WindowCmd_base
18
template <typename ReturnType=void>
19
class WindowCmd: public WindowCmd_base, public FbTk::Command {
21
typedef ReturnType (FluxboxWindow::* Action)();
22
WindowCmd(Action a):m_action(a) {}
25
(*window().*m_action)();
32
#endif // WINDOWCMD_HH