From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <1c1189e74f2e5436756d2f05b3d89355@vitanuova.com> To: 9fans@cse.psu.edu Subject: Re: [9fans] 9con in Madrid? Date: Wed, 7 Dec 2005 20:39:46 +0000 From: rog@vitanuova.com In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Topicbox-Message-UUID: bdde93b0-ead0-11e9-9d60-3106f5b1d025 > 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.