From cf0681f1ba2e4538122111e5631cf43ccd08dd44 Mon Sep 17 00:00:00 2001 From: fluxgen Date: Wed, 2 Jul 2003 14:31:43 +0000 Subject: fixed bug in updateWorkspace --- src/Ewmh.cc | 15 ++++++++------- 1 file 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 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Ewmh.cc,v 1.27 2003/06/18 13:34:30 fluxgen Exp $ +// $Id: Ewmh.cc,v 1.28 2003/07/02 14:31:43 fluxgen Exp $ #include "Ewmh.hh" @@ -243,7 +243,6 @@ void Ewmh::updateLayer(FluxboxWindow &win) { } void Ewmh::updateHints(FluxboxWindow &win) { - } void Ewmh::updateWorkspace(FluxboxWindow &win) { @@ -251,11 +250,13 @@ void Ewmh::updateWorkspace(FluxboxWindow &win) { if (win.isStuck()) workspace = 0xFFFFFFFF; // appear on all desktops/workspaces - for_each(win.clientList().begin(), - win.clientList().end(), - FbTk::ChangeProperty(FbTk::App::instance()->display(), - m_net_wm_desktop, PropModeReplace, - (unsigned char *)&workspace, 1)); + FluxboxWindow::ClientList::iterator it = win.clientList().begin(); + FluxboxWindow::ClientList::iterator it_end = win.clientList().end(); + for (; it != it_end; ++it) { + (*it)->changeProperty(m_net_wm_desktop, XA_CARDINAL, 32, PropModeReplace, + (unsigned char *)&workspace, 1); + } + } // return true if we did handle the atom here -- cgit v0.11.2