brown@ftms.UUCP (Vidiot) (03/09/91)
Pre-lim stuff: SunOS4.1 OW2.0 OK, what-the-Hell-gives with xsetroot and the -fg/-bg options? Here is the situation: when `xsetroot -bitmap back.xbm -fg #0088ee -bg #0088cc' is run from a shelltool command line, it works just fine. But, put that same line into a shell script that is called up when starting OpenWindows, like the .openwin-init file (actually I have another one that is called before .open- win-init), it fails to work, because it doesn't like the -fg and -bg. I know that is the problem because if I remove those flags, the bitmap is placed into the root window in Black&White. The same problem will occur if I run the shell script from a shelltool. If I start a shelltool and pass it the complete xsetroot command string I get: olwm: Warning, X Error: BadDrawable Request Major code: 14 Request Minor code: 0 ResourceId 0x80000b olwm: Warning: An invalid window is was named as an icon window. olwm: Warning, X Error: BadWindow If I leave off the -fg and -bg, again it will work. What-the-Hell is the matter? This situation is very fustrating. :-( Along those same lines, when I bring up olwm, I have the following option -xrm "OpenWindows.WorkspaceColor:" added so that when I do the xsetroot to set the background, olwm won't set the background color when it finally gets there (it was started in the background and xsetroot was next). How does one set a resource so that the cursor is not changed by olwm? I use `xsetroot -cursor file.xbm filemask.xbm' and it too gets stepped on when olwm finally gets to setting that in its program. Right now I have a sleep 15 so that the olwm stuff gets done before continuing on. Any help/pointers are appreciated. -- harvard\ ucbvax!uwvax!astroatc!ftms!brown rutgers/ INTERNET: spool.cs.wisc.edu!astroatc!ftms!brown
garyc@hobbes.wv.tek.com (Gary Combs) (03/12/91)
Use xsetroot -bitmap back.xbm -fg \#0088ee -bg \#0088cc or xsetroot -bitmap back.xbm -fg '#0088ee' -bg '#0088cc' in your shell script.
brown@vidiot.UUCP (Vidiot) (03/13/91)
In article <10325@orca.wv.tek.com> garyc@hobbes.wv.tek.com (Gary Combs) writes:
<Use
< xsetroot -bitmap back.xbm -fg \#0088ee -bg \#0088cc
This is what I have done. With csh scripts, I never worry about the #, so I
just plain forgot. :-(
--
harvard\ att!nicmad\ spool.cs.wisc.edu!astroatc!vidiot!brown
Vidiot ucbvax!uwvax..........!astroatc!vidiot!brown
rutgers/ decvax!nicmad/ INTERNET:vidiot!brown%astroatc@spool.cs.wisc.edu