aboutsummaryrefslogtreecommitdiff
path: root/src/Gnome.cc
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2003-04-15 12:22:52 (GMT)
committerfluxgen <fluxgen>2003-04-15 12:22:52 (GMT)
commit89fddca1d7a2809278f9307367e7f6b600456dc1 (patch)
treeb7a6b6e2cf2265fb37aaac24827e03d6d4f51739 /src/Gnome.cc
parent77beb5472b35477ba1235cc7258071e4d4094e54 (diff)
downloadfluxbox-89fddca1d7a2809278f9307367e7f6b600456dc1.zip
fluxbox-89fddca1d7a2809278f9307367e7f6b600456dc1.tar.bz2
cleaning
Diffstat (limited to 'src/Gnome.cc')
-rw-r--r--src/Gnome.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/Gnome.cc b/src/Gnome.cc
index 717cc60..d4822c5 100644
--- a/src/Gnome.cc
+++ b/src/Gnome.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: Gnome.cc,v 1.16 2003/04/15 00:17:59 fluxgen Exp $ 22// $Id: Gnome.cc,v 1.17 2003/04/15 12:22:52 fluxgen Exp $
23 23
24#include "Gnome.hh" 24#include "Gnome.hh"
25 25
@@ -126,6 +126,7 @@ void Gnome::setupWindow(FluxboxWindow &win) {
126void Gnome::updateClientList(BScreen &screen) { 126void Gnome::updateClientList(BScreen &screen) {
127 size_t num=0; 127 size_t num=0;
128 128
129 // count window clients in each workspace
129 BScreen::Workspaces::const_iterator workspace_it = 130 BScreen::Workspaces::const_iterator workspace_it =
130 screen.getWorkspacesList().begin(); 131 screen.getWorkspacesList().begin();
131 BScreen::Workspaces::const_iterator workspace_it_end = 132 BScreen::Workspaces::const_iterator workspace_it_end =
@@ -138,14 +139,14 @@ void Gnome::updateClientList(BScreen &screen) {
138 for (; win_it != win_it_end; ++win_it) 139 for (; win_it != win_it_end; ++win_it)
139 num += (*win_it)->numClients(); 140 num += (*win_it)->numClients();
140 } 141 }
141 //int num = getCurrentWorkspace()->getWindowList().size();
142 142
143 Window *wl = new (nothrow) Window[num]; 143 Window *wl = new (nothrow) Window[num];
144 if (wl == 0) { 144 if (wl == 0) {
145 cerr<<"Fatal: Out of memory, can't allocate for gnome client list"<<endl; 145 cerr<<"Fatal: Out of memory, can't allocate for gnome client list"<<endl;
146 return; 146 return;
147 } 147 }
148 //start the iterator from begining 148
149 //add client windows to buffer
149 workspace_it = screen.getWorkspacesList().begin(); 150 workspace_it = screen.getWorkspacesList().begin();
150 int win=0; 151 int win=0;
151 for (; workspace_it != workspace_it_end; ++workspace_it) { 152 for (; workspace_it != workspace_it_end; ++workspace_it) {