diff options
author | markt <markt> | 2007-11-22 04:41:36 (GMT) |
---|---|---|
committer | markt <markt> | 2007-11-22 04:41:36 (GMT) |
commit | 0a7cb3db1f1eaf18eeed8695a7434027bfc7ce6c (patch) | |
tree | bebdd1350b25075597d18d3d6cc8c4f9d7b2c3e6 /src/CurrentWindowCmd.cc | |
parent | 675bc5d66aa08311e99cb00cf836d16a910a73df (diff) | |
download | fluxbox-0a7cb3db1f1eaf18eeed8695a7434027bfc7ce6c.zip fluxbox-0a7cb3db1f1eaf18eeed8695a7434027bfc7ce6c.tar.bz2 |
use winclient instead of fluxboxwindow for matching, and removing old code
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 | } |