aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2003-07-02 14:31:43 (GMT)
committerfluxgen <fluxgen>2003-07-02 14:31:43 (GMT)
commitcf0681f1ba2e4538122111e5631cf43ccd08dd44 (patch)
tree517ca0cd4dd18a94992c849b277cdf5d9bf33ef3 /src
parent7ea898ab652b41a6e8798802c87d8615e076eed4 (diff)
downloadfluxbox_paul-cf0681f1ba2e4538122111e5631cf43ccd08dd44.zip
fluxbox_paul-cf0681f1ba2e4538122111e5631cf43ccd08dd44.tar.bz2
fixed bug in updateWorkspace
Diffstat (limited to 'src')
-rw-r--r--src/Ewmh.cc15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/Ewmh.cc b/src/Ewmh.cc
index 9904dc3..6b59a0c 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.27 2003/06/18 13:34:30 fluxgen Exp $ 22// $Id: Ewmh.cc,v 1.28 2003/07/02 14:31:43 fluxgen Exp $
23 23
24#include "Ewmh.hh" 24#include "Ewmh.hh"
25 25
@@ -243,7 +243,6 @@ void Ewmh::updateLayer(FluxboxWindow &win) {
243} 243}
244 244
245void Ewmh::updateHints(FluxboxWindow &win) { 245void Ewmh::updateHints(FluxboxWindow &win) {
246
247} 246}
248 247
249void Ewmh::updateWorkspace(FluxboxWindow &win) { 248void Ewmh::updateWorkspace(FluxboxWindow &win) {
@@ -251,11 +250,13 @@ void Ewmh::updateWorkspace(FluxboxWindow &win) {
251 if (win.isStuck()) 250 if (win.isStuck())
252 workspace = 0xFFFFFFFF; // appear on all desktops/workspaces 251 workspace = 0xFFFFFFFF; // appear on all desktops/workspaces
253 252
254 for_each(win.clientList().begin(), 253 FluxboxWindow::ClientList::iterator it = win.clientList().begin();
255 win.clientList().end(), 254 FluxboxWindow::ClientList::iterator it_end = win.clientList().end();
256 FbTk::ChangeProperty(FbTk::App::instance()->display(), 255 for (; it != it_end; ++it) {
257 m_net_wm_desktop, PropModeReplace, 256 (*it)->changeProperty(m_net_wm_desktop, XA_CARDINAL, 32, PropModeReplace,
258 (unsigned char *)&workspace, 1)); 257 (unsigned char *)&workspace, 1);
258 }
259
259} 260}
260 261
261// return true if we did handle the atom here 262// return true if we did handle the atom here