aboutsummaryrefslogtreecommitdiff
path: root/src/CurrentWindowCmd.cc
diff options
context:
space:
mode:
authormarkt <markt>2007-11-22 04:41:36 (GMT)
committermarkt <markt>2007-11-22 04:41:36 (GMT)
commit0a7cb3db1f1eaf18eeed8695a7434027bfc7ce6c (patch)
treebebdd1350b25075597d18d3d6cc8c4f9d7b2c3e6 /src/CurrentWindowCmd.cc
parent675bc5d66aa08311e99cb00cf836d16a910a73df (diff)
downloadfluxbox-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.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}