confusion about syntax of application specific resources

Peter J. Bismuti pjb9508 at vashon.ca.boeing.com
Tue Oct 31 09:32:50 PST 2006


Oh ya, I forgot the fallback resource string:

static String FallbackResources[] = {
 "*mainMenu.geometry: 180x820+0+0",
 "*SectionWindow.x: 200",
 "*SectionWindow.y: 20",

Should that (or can it) read like this:

static String FallbackResources[] = {
 "AppName*mainMenu.geometry: 180x820+0+0",
 "AppName*SectionWindow.x: 200",
 "AppName*SectionWindow.y: 20",

THx.



> Can't set resources correctly from either .Xdefaults file or an application
> specific file $HOME/.app-defaults/AppName.  The syntax:
>
> AppName*key = value
>
> from .Xdefaults does not work correctly, at least not for non-widget
> resources.  For example:
>
> static String FallbackResources[] = {
>  "*mainMenu.geometry: 180x820+0+0",
>  "*SectionWindow.x: 200",
>  "*SectionWindow.y: 20",
>
> AppName.geometry: 810x280+0+0",
> AppName.SectionWindow.x: 100
> AppName.SectionWindow.y: 40
>
> will work only for the first entry (widget resource?) while it fails for
> the second two.  It seems to be attempting to read them and override the
> fallback values, but sets the values of x,y to 0 instead.  The only way to
> get x,y (application specific resources?) to work is by using a wildcard in
> a file:
>
> *SectionWindow.x: 100
> *SectionWindow.y: 40
>
> Even though placing this in the file  $HOME/.app-defaults/AppName removes
> any possibility of conflict, I'd still like to understand what is going on
> here. Can anyone explain the behavior I'm seeing?
>
> Thanks in advance.

-- 


Peter Bismuti
Boeing Commercial Airline Division
Shared Services
Renton, WA
(425) 234-0873



More information about the xorg mailing list