diff options
author | fluxgen <fluxgen> | 2006-02-18 20:19:22 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2006-02-18 20:19:22 (GMT) |
commit | 5ceacc65925f597180c918fcaa2a8171c42cbcdd (patch) | |
tree | 1cee0d151c5368ee69bf4e0e432d0f7f6af37b38 /src/CurrentWindowCmd.cc | |
parent | f53c93e5e0add69771204056550d07b4fee4efef (diff) | |
download | fluxbox-5ceacc65925f597180c918fcaa2a8171c42cbcdd.zip fluxbox-5ceacc65925f597180c918fcaa2a8171c42cbcdd.tar.bz2 |
moved all focus handling to FocusControl
Diffstat (limited to 'src/CurrentWindowCmd.cc')
-rw-r--r-- | src/CurrentWindowCmd.cc | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/CurrentWindowCmd.cc b/src/CurrentWindowCmd.cc index d78ed99..7bc7977 100644 --- a/src/CurrentWindowCmd.cc +++ b/src/CurrentWindowCmd.cc | |||
@@ -29,10 +29,12 @@ | |||
29 | #include "Screen.hh" | 29 | #include "Screen.hh" |
30 | #include "WinClient.hh" | 30 | #include "WinClient.hh" |
31 | 31 | ||
32 | #include "FocusControl.hh" | ||
33 | |||
32 | CurrentWindowCmd::CurrentWindowCmd(Action act):m_action(act) { } | 34 | CurrentWindowCmd::CurrentWindowCmd(Action act):m_action(act) { } |
33 | 35 | ||
34 | void CurrentWindowCmd::execute() { | 36 | void CurrentWindowCmd::execute() { |
35 | WinClient *client = Fluxbox::instance()->getFocusedWindow(); | 37 | WinClient *client = FocusControl::focusedWindow(); |
36 | if (client && client->fbwindow()) | 38 | if (client && client->fbwindow()) |
37 | (client->fbwindow()->*m_action)(); | 39 | (client->fbwindow()->*m_action)(); |
38 | } | 40 | } |
@@ -95,19 +97,19 @@ void GoToTabCmd::real_execute() { | |||
95 | } | 97 | } |
96 | 98 | ||
97 | void WindowHelperCmd::execute() { | 99 | void WindowHelperCmd::execute() { |
98 | WinClient *client = Fluxbox::instance()->getFocusedWindow(); | 100 | WinClient *client = FocusControl::focusedWindow(); |
99 | if (client && client->fbwindow()) // guarantee that fbwindow() exists too | 101 | if (client && client->fbwindow()) // guarantee that fbwindow() exists too |
100 | real_execute(); | 102 | real_execute(); |
101 | } | 103 | } |
102 | 104 | ||
103 | WinClient &WindowHelperCmd::winclient() { | 105 | WinClient &WindowHelperCmd::winclient() { |
104 | // will exist from execute above | 106 | // will exist from execute above |
105 | return *Fluxbox::instance()->getFocusedWindow(); | 107 | return *FocusControl::focusedWindow(); |
106 | } | 108 | } |
107 | 109 | ||
108 | FluxboxWindow &WindowHelperCmd::fbwindow() { | 110 | FluxboxWindow &WindowHelperCmd::fbwindow() { |
109 | // will exist from execute above | 111 | // will exist from execute above |
110 | return *Fluxbox::instance()->getFocusedWindow()->fbwindow(); | 112 | return *FocusControl::focusedWindow()->fbwindow(); |
111 | } | 113 | } |
112 | 114 | ||
113 | MoveCmd::MoveCmd(const int step_size_x, const int step_size_y) : | 115 | MoveCmd::MoveCmd(const int step_size_x, const int step_size_y) : |