all repos — fluxbox @ cf0681f1ba2e4538122111e5631cf43ccd08dd44

custom fork of the fluxbox windowmanager

fixed bug in updateWorkspace
fluxgen fluxgen
commit

cf0681f1ba2e4538122111e5631cf43ccd08dd44

parent

7ea898ab652b41a6e8798802c87d8615e076eed4

1 files changed, 8 insertions(+), 7 deletions(-)

jump to
M src/Ewmh.ccsrc/Ewmh.cc

@@ -19,7 +19,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

// 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 @@ //!! TODO _NET_WM_WINDOW_TYPE

} void Ewmh::updateHints(FluxboxWindow &win) { - } void Ewmh::updateWorkspace(FluxboxWindow &win) {

@@ -251,11 +250,13 @@ int workspace = win.workspaceNumber();

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