all repos — fluxbox @ 30848ef2b397a4082ae968d8aa742487468a6df9

custom fork of the fluxbox windowmanager

workspace update
fluxgen fluxgen
commit

30848ef2b397a4082ae968d8aa742487468a6df9

parent

3aae9c44ed3b2d6347ace5b6589780b73d6b919b

1 files changed, 9 insertions(+), 9 deletions(-)

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

@@ -19,9 +19,10 @@ // 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: Gnome.cc,v 1.2 2002/09/08 10:58:30 fluxgen Exp $ +// $Id: Gnome.cc,v 1.3 2002/09/10 12:23:03 fluxgen Exp $ #include "Gnome.hh" + #include "Window.hh" #include "Screen.hh"

@@ -94,14 +95,9 @@ setState(&win, flags);

XFree (data); } - if (XGetWindowProperty(disp, win.getClientWindow(), - m_gnome_wm_win_workspace, 0, 1, False, XA_CARDINAL, - &ret_type, &fmt, &nitems, &bytes_after, - (unsigned char **)&data) == Success && data) { -#ifdef DEBUG - cerr<<__FILE__<<"("<<__LINE__<<"): Workspace: "<<*data<<endl; -#endif // DEBUG - } + // make sure we get right workspace + updateWorkspace(win); + } void Gnome::updateClientList(const BScreen &screen) {

@@ -188,6 +184,10 @@ }

void Gnome::updateWorkspace(FluxboxWindow &win) { int val = win.getWorkspaceNumber(); +#ifdef DEBUG + cerr<<__FILE__<<"("<<__LINE__<<"): setting workspace("<<val<< + ") for window("<<&win<<")"<<endl; +#endif // DEBUG XChangeProperty(BaseDisplay::getXDisplay(), win.getClientWindow(), m_gnome_wm_win_workspace, XA_CARDINAL, 32, PropModeReplace, (unsigned char *)&val, 1);