diff options
Diffstat (limited to 'src/CurrentWindowCmd.cc')
-rw-r--r-- | src/CurrentWindowCmd.cc | 9 |
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 | ||
60 | WinClient &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 | |||
60 | void CurrentWindowCmd::real_execute() { | 67 | void 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 | ||
236 | bool MatchCmd::real_execute() { | 243 | bool MatchCmd::real_execute() { |
237 | return m_pat.match(fbwindow()); | 244 | return m_pat.match(winclient()); |
238 | } | 245 | } |