> To switch desktops just
> hide all the windows on the current desktop and
> unhide the ones on the new desktop.

one problem with this approach, at least with the current rio:

there's no way, as far as i'm aware, of determining the current
z-order of rio windows, so hiding and then unhiding a set of windows
is likely to alter this.  this could perhaps be fixed by getting rio
to remember the z-order of hidden windows and readjusting when
unhiding. (it'd be nice if it maintained this order when windows
resized themselves too).

after a little inspection of rio code, i can't see an obvious way
of doing this (perhaps a call to topnwindows inside wctlmesg?).

before spending any more time, does the approach seem reasonable?

incidentally, i encountered a tiny little bug in rio on the way; try:

        for(i in /dev/wsys/*){echo bottom > $i/wctl}

rio gets confused about the z-order of the windows.
i think this is probably fixed by changing:

                w->topped = 0;

in wbottomme() to

                w->topped = - (++ topped);

although i haven't checked it.

Reply via email to