Note that the window manager must be started first. Xtoolwait depends on it to detect window mappings. The first instance of Xtoolwait will wait until both the window manager and the X client have finished their initialization.
# # Startup the window manager first # olvwm & wmpid=$! # # Restore desktop settings # Do _not_ put xtoolwait in the background # xtoolwait -mappings 2 contool -Wp 30 30 -Ws 575 246 -WP 3 533 -Wi xtoolwait xeyes -geom 77x60+640+107 xtoolwait ansi_xterm -geom 80x24+22+11 xtoolwait clock -Wp 90 90 -Ws 150 150 -WP 733 110 -Wi # # Wait for the window manager # wait $wmpid
Note also that the first Xtoolwait uses the -mappings option to detect the virtual desktop window, which is mapped by virtual window managers. Omit this option if you use a non-virtual window manager.