all repos — fluxbox @ 0a7cb3db1f1eaf18eeed8695a7434027bfc7ce6c

custom fork of the fluxbox windowmanager

use winclient instead of fluxboxwindow for matching, and removing old code
markt markt
commit

0a7cb3db1f1eaf18eeed8695a7434027bfc7ce6c

parent

675bc5d66aa08311e99cb00cf836d16a910a73df

4 files changed, 9 insertions(+), 9 deletions(-)

jump to
M src/CurrentWindowCmd.ccsrc/CurrentWindowCmd.cc

@@ -57,6 +57,13 @@ if (tmp) return *tmp;

return *FocusControl::focusedFbWindow(); } +WinClient &WindowHelperBoolCmd::winclient() { + // will exist from execute above + WinClient *tmp = WindowCmd<void>::client(); + if (tmp) return *tmp; + return *FocusControl::focusedWindow(); +} + void CurrentWindowCmd::real_execute() { (fbwindow().*m_action)(); }

@@ -234,5 +241,5 @@ fbwindow().setUnfocusedAlpha(m_unfocus);

} bool MatchCmd::real_execute() { - return m_pat.match(fbwindow()); + return m_pat.match(winclient()); }
M src/CurrentWindowCmd.hhsrc/CurrentWindowCmd.hh

@@ -50,6 +50,7 @@ bool bool_execute();

protected: FluxboxWindow &fbwindow(); + WinClient &winclient(); virtual bool real_execute() = 0; };
M src/WorkspaceCmd.ccsrc/WorkspaceCmd.cc

@@ -64,9 +64,6 @@ }

} bool SomeCmd::bool_execute() { - if (m_pat.error()) - return m_cmd->bool_execute(); - BScreen *screen = Fluxbox::instance()->keyScreen(); if (screen != 0) { FocusControl::Focusables win_list(screen->focusControl().creationOrderList().clientList());

@@ -85,9 +82,6 @@ return false;

} bool EveryCmd::bool_execute() { - if (m_pat.error()) - return m_cmd->bool_execute(); - BScreen *screen = Fluxbox::instance()->keyScreen(); if (screen != 0) { FocusControl::Focusables win_list(screen->focusControl().creationOrderList().clientList());
M src/WorkspaceCmd.hhsrc/WorkspaceCmd.hh

@@ -52,7 +52,6 @@ bool bool_execute();

private: FbTk::RefCount<FbTk::BoolCommand> m_cmd; - ClientPattern m_pat; }; class EveryCmd: public FbTk::BoolCommand {

@@ -63,7 +62,6 @@ bool bool_execute();

private: FbTk::RefCount<FbTk::BoolCommand> m_cmd; - ClientPattern m_pat; }; class AttachCmd: public FbTk::Command {