nothing interesting but virtual.c where i enhanced the syntax of 
'MOVE_DESKTOP'. it's for patchlevel4.1 of olvwm(1)

a: why do this?
q: i made a program, 'olsw', which saves the olvwm(1)'s virtual workspaces.
   however, it can only achieve it when the user is working on the very
   first (logical) screen, i.e. the top-left one. otherwise it will mess up
   when you restart the x session. of course, you can tell the 
   user that he/she should first go to the first screen and then .... But 
   as an admin, especailly if you feel lazy, you'd better let it go
   automatically. the olvwmrc(5) has a built-in move desktop facility 
   'MOVE_DESKTOP' but it can not be followed by a shell command. for 
   example, if you put
          "HOME"     MOVE_DESKTOP 1
   in the $HOME/.openwin-menu, it will set the current working (logical) 
   screen to the top-left one. but if you want more, say,
          "HOME"     MOVE_DESKTOP 1; xmesage hello
   it won't work, i.e. you won't get a pop-up window with "hello". this
   is due to the limitation of the syntax of 'MOVE_DESKTOP'.  what i did
   is to have enhanced it so that the latter also works. all the
   modification is in virtual.c and marked with 'tian'. while if you
   want to fully understand it you may also need to read usermenu.c.
   to apply this workaround, simply use it to overwrite the original
   virtual.c and then rebuild olvwm(1). after rebuilding, you can
   put the following in your workspace menu
          "SAVE WORKSPACE"      MOVE_DESKTOP 1; olsw >$HOME/.saved_xsession 
   and put the following in your .openwin-init, .xsession or .xstartup
   depending on which window manager you are using.
          . $HOME/.saved_xsession

--------------------------------
BTW
   i also have tried another way. i used XSendEvent() function to fake
   a double click on the virtual desktop window. but it failed. and 
   olvwm(1)'s man page says it doesn't accept synthetic event by
   default, that is, it doesn't accept the SendEvent Protocol by
   default. any idea about this is appreciated. please email to:
   than@lucent.com
