aboutsummaryrefslogtreecommitdiff
path: root/src/CurrentWindowCmd.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/CurrentWindowCmd.cc')
-rw-r--r--src/CurrentWindowCmd.cc9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/CurrentWindowCmd.cc b/src/CurrentWindowCmd.cc
index a5265f9..78f3aa1 100644
--- a/src/CurrentWindowCmd.cc
+++ b/src/CurrentWindowCmd.cc
@@ -57,6 +57,13 @@ FluxboxWindow &WindowHelperBoolCmd::fbwindow() {
57 return *FocusControl::focusedFbWindow(); 57 return *FocusControl::focusedFbWindow();
58} 58}
59 59
60WinClient &WindowHelperBoolCmd::winclient() {
61 // will exist from execute above
62 WinClient *tmp = WindowCmd<void>::client();
63 if (tmp) return *tmp;
64 return *FocusControl::focusedWindow();
65}
66
60void CurrentWindowCmd::real_execute() { 67void CurrentWindowCmd::real_execute() {
61 (fbwindow().*m_action)(); 68 (fbwindow().*m_action)();
62} 69}
@@ -234,5 +241,5 @@ void SetAlphaCmd::real_execute() {
234} 241}
235 242
236bool MatchCmd::real_execute() { 243bool MatchCmd::real_execute() {
237 return m_pat.match(fbwindow()); 244 return m_pat.match(winclient());
238} 245}