diff options
Diffstat (limited to 'src/Ewmh.cc')
-rw-r--r-- | src/Ewmh.cc | 29 |
1 files changed, 21 insertions, 8 deletions
diff --git a/src/Ewmh.cc b/src/Ewmh.cc index c17bd92..92c6dbd 100644 --- a/src/Ewmh.cc +++ b/src/Ewmh.cc | |||
@@ -19,7 +19,7 @@ | |||
19 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 19 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
20 | // DEALINGS IN THE SOFTWARE. | 20 | // DEALINGS IN THE SOFTWARE. |
21 | 21 | ||
22 | // $Id: Ewmh.cc,v 1.15 2003/04/14 12:11:21 fluxgen Exp $ | 22 | // $Id: Ewmh.cc,v 1.16 2003/04/15 00:14:24 fluxgen Exp $ |
23 | 23 | ||
24 | #include "Ewmh.hh" | 24 | #include "Ewmh.hh" |
25 | 25 | ||
@@ -128,10 +128,19 @@ void Ewmh::setupWindow(FluxboxWindow &win) { | |||
128 | void Ewmh::updateClientList(BScreen &screen) { | 128 | void Ewmh::updateClientList(BScreen &screen) { |
129 | size_t num=0; | 129 | size_t num=0; |
130 | 130 | ||
131 | BScreen::Workspaces::const_iterator workspace_it = screen.getWorkspacesList().begin(); | 131 | BScreen::Workspaces::const_iterator workspace_it = |
132 | BScreen::Workspaces::const_iterator workspace_it_end = screen.getWorkspacesList().end(); | 132 | screen.getWorkspacesList().begin(); |
133 | BScreen::Workspaces::const_iterator workspace_it_end = | ||
134 | screen.getWorkspacesList().end(); | ||
133 | for (; workspace_it != workspace_it_end; ++workspace_it) { | 135 | for (; workspace_it != workspace_it_end; ++workspace_it) { |
134 | num += (*workspace_it)->getWindowList().size(); | 136 | Workspace::Windows::iterator win_it = |
137 | (*workspace_it)->getWindowList().begin(); | ||
138 | Workspace::Windows::iterator win_it_end = | ||
139 | (*workspace_it)->getWindowList().end(); | ||
140 | for (; win_it != win_it_end; ++win_it) { | ||
141 | num += (*win_it)->numClients(); | ||
142 | } | ||
143 | |||
135 | } | 144 | } |
136 | //int num = getCurrentWorkspace()->getWindowList().size(); | 145 | //int num = getCurrentWorkspace()->getWindowList().size(); |
137 | 146 | ||
@@ -146,15 +155,19 @@ void Ewmh::updateClientList(BScreen &screen) { | |||
146 | for (; workspace_it != workspace_it_end; ++workspace_it) { | 155 | for (; workspace_it != workspace_it_end; ++workspace_it) { |
147 | 156 | ||
148 | // Fill in array of window ID's | 157 | // Fill in array of window ID's |
149 | Workspace::Windows::const_iterator it = (*workspace_it)->getWindowList().begin(); | 158 | Workspace::Windows::const_iterator it = |
150 | Workspace::Windows::const_iterator it_end = (*workspace_it)->getWindowList().end(); | 159 | (*workspace_it)->getWindowList().begin(); |
160 | Workspace::Windows::const_iterator it_end = | ||
161 | (*workspace_it)->getWindowList().end(); | ||
151 | for (; it != it_end; ++it) { | 162 | for (; it != it_end; ++it) { |
152 | if ((*it)->numClients() == 1) | 163 | if ((*it)->numClients() == 1) |
153 | wl[win++] = (*it)->getClientWindow(); | 164 | wl[win++] = (*it)->getClientWindow(); |
154 | else { | 165 | else { |
155 | // add every client in fluxboxwindow to list window list | 166 | // add every client in fluxboxwindow to list window list |
156 | std::list<WinClient *>::iterator client_it = (*it)->clientList().begin(); | 167 | std::list<WinClient *>::iterator client_it = |
157 | std::list<WinClient *>::iterator client_it_end = (*it)->clientList().end(); | 168 | (*it)->clientList().begin(); |
169 | std::list<WinClient *>::iterator client_it_end = | ||
170 | (*it)->clientList().end(); | ||
158 | for (; client_it != client_it_end; ++client_it) | 171 | for (; client_it != client_it_end; ++client_it) |
159 | wl[win++] = (*client_it)->window(); | 172 | wl[win++] = (*client_it)->window(); |
160 | } | 173 | } |