diff options
author | markt <markt> | 2006-07-12 00:08:57 (GMT) |
---|---|---|
committer | markt <markt> | 2006-07-12 00:08:57 (GMT) |
commit | c929da4054f9fa7458bce2f4b46787e5484af850 (patch) | |
tree | 8987dbe8d8de8be57551d811f836843937487261 /src/CurrentWindowCmd.cc | |
parent | e1fdf51f4e7bf0d645c55b761ad5d997698b4818 (diff) | |
download | fluxbox-c929da4054f9fa7458bce2f4b46787e5484af850.zip fluxbox-c929da4054f9fa7458bce2f4b46787e5484af850.tar.bz2 |
replacing some instances of focusedWindow()->fbwindow() with focusedFbWindow()
Diffstat (limited to 'src/CurrentWindowCmd.cc')
-rw-r--r-- | src/CurrentWindowCmd.cc | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/CurrentWindowCmd.cc b/src/CurrentWindowCmd.cc index de50c60..dc27056 100644 --- a/src/CurrentWindowCmd.cc +++ b/src/CurrentWindowCmd.cc | |||
@@ -34,9 +34,9 @@ | |||
34 | CurrentWindowCmd::CurrentWindowCmd(Action act):m_action(act) { } | 34 | CurrentWindowCmd::CurrentWindowCmd(Action act):m_action(act) { } |
35 | 35 | ||
36 | void CurrentWindowCmd::execute() { | 36 | void CurrentWindowCmd::execute() { |
37 | WinClient *client = FocusControl::focusedWindow(); | 37 | FluxboxWindow *win = FocusControl::focusedFbWindow(); |
38 | if (client && client->fbwindow()) | 38 | if (win) |
39 | (client->fbwindow()->*m_action)(); | 39 | (win->*m_action)(); |
40 | } | 40 | } |
41 | 41 | ||
42 | 42 | ||
@@ -97,8 +97,7 @@ void GoToTabCmd::real_execute() { | |||
97 | } | 97 | } |
98 | 98 | ||
99 | void WindowHelperCmd::execute() { | 99 | void WindowHelperCmd::execute() { |
100 | WinClient *client = FocusControl::focusedWindow(); | 100 | if (FocusControl::focusedFbWindow()) // guarantee that fbwindow() exists too |
101 | if (client && client->fbwindow()) // guarantee that fbwindow() exists too | ||
102 | real_execute(); | 101 | real_execute(); |
103 | } | 102 | } |
104 | 103 | ||
@@ -109,7 +108,7 @@ WinClient &WindowHelperCmd::winclient() { | |||
109 | 108 | ||
110 | FluxboxWindow &WindowHelperCmd::fbwindow() { | 109 | FluxboxWindow &WindowHelperCmd::fbwindow() { |
111 | // will exist from execute above | 110 | // will exist from execute above |
112 | return *FocusControl::focusedWindow()->fbwindow(); | 111 | return *FocusControl::focusedFbWindow(); |
113 | } | 112 | } |
114 | 113 | ||
115 | MoveCmd::MoveCmd(const int step_size_x, const int step_size_y) : | 114 | MoveCmd::MoveCmd(const int step_size_x, const int step_size_y) : |