On Mon, Mar 22, 2004 at 11:55:30AM +0000, Ukpong Ukpong wrote: > > Yes tried that but need to find out the number of active desktops at > runtime...isn't this set some where !!!!!
Currently not, but I have a patch on my disk that adds the variable $[w.desk] to get a window's desk. With that, you can make a script that calculates the min and max used desk: destroyfunc get_used_desks addtofunc get_used_desks + i setenv DESK_MIN $d + i echo setenv DESK_MIN $d + i setenv DESK_MAX $d + i echo setenv DESK_MAX $d + i all (circulatehit) piperead '\ if [ $[w.desk] -lt $[DESK_MIN] ]; then \ echo "setenv DESK_MIN $[w.desk]"; \ fi; \ if [ $[w.desk] -gt $[DESK_MAX] ]; then \ echo "setenv DESK_MAX $[w.desk]"; \ fi \ ' After running that script, you can get the min and max used desk numbers with $[DESK_MIN] and $[DESK_MAX] (the script has to be rerun each time these variables are to be used). Unfortunately, I can not access CVS right now to check in the patch. Ciao Dominik ^_^ ^_^ -- Visit the official FVWM web page at <URL: http://www.fvwm.org/>. To unsubscribe from the list, send "unsubscribe fvwm" in the body of a message to [EMAIL PROTECTED] To report problems, send mail to [EMAIL PROTECTED]