DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
OSF/Motif window manager resources

Other resources for controlling windows

The following resources control miscellaneous aspects of window management and behavior:

Window control resources

Name Class Value type Default
Bindings
buttonBindings ButtonBindings string DefaultButtonBindings
keyBindings KeyBindings string DefaultKeyBindings
Screen management
multiScreen MultiScreen true/false false
screens Screens string varies
Client management
quitTimeout QuitTimeout milliseconds 1000 +
saveUnder SaveUnder true/false false
Mouse timing
doubleClickTime DoubleClickTime milliseconds 500
Resource directories
bitmapDirectory BitmapDirectory directory /usr/include/X11/bitmaps
configFile ConfigFile file .mwmrc ++
Root menu
rootMenu RootMenu string RootMenu
Window menus
wMenuButtonClick WMenuButtonClick true/false true
wMenuButtonClick2 WMenuButtonClick2 true/false true
windowMenu WindowMenu string DefaultWindowMenu


+
In pmwm mode, this resource is set to ``5000''.

++
In pmwm mode, this resource is set to ``.pmwmrc''.

These resources are described in more detail below:

bitmapDirectory (Class: BitmapDirectory)
This resource specifies a directory that the window manager searches to locate any bitmaps needed by other window manager resources. The default setting of this resource is /usr/include/X11/bitmaps. (This is a specific appearance and behavior resource.)

buttonBindings (Class: ButtonBindings)
This resource specifies a set of button bindings (a table that assigns an action to a button-press) that augments the built-in button bindings of the window manager. The value should be the name of a button binding from the window manager configuration file. The default value of the buttonBindings resource is ``DefaultButtonBindings,'' as specified in the /usr/lib/X11/system.pmwmrc or /usr/lib/X11/system.mwmrc files. See ``Configuring window manager button bindings'' for more information. (This is a specific appearance and behavior resource.)

configFile (Class: ConfigFile)
This resource specifies the pathname of the window manager configuration file, which is a file with menu definitions, and button and key bindings. If the pathname specified by the configFile resource begins with ~/ (the tilde character followed by slash), the window manager considers that pathname to be absolute; otherwise, the path is assumed to be relative to the current directory. Here is how the window manager uses this resource:

  1. If the environment variable $LANG is set, the window manager looks for the specified configuration file in the directory $HOME/lang, which means in a subdirectory of your home directory, where the name of the subdirectory is specified by the language portion of the $LANG environment variable.

  2. If the specified configuration file does not exist in $HOME/lang or if the $LANG environment variable is not defined, the window manager looks for that file in $HOME.

  3. If you do not specify a configFile resource or if the specified file does not exist in one of the places listed in the first two steps, the window manager looks for a configuration file named .pmwmrc (for pmwm mode) or .mwmrc (for mwm mode). If the $LANG environment variable is set, it looks for $HOME/lang/.pmwmrc or .mwmrc; otherwise, it looks for $HOME/.pmwmrc or .mwmrc.

  4. If neither a .pmwmrc or .mwmrc file exist, the window manager looks for a file named system.pmwmrc or system.mwmrc, first in the directory /usr/lib/X11/lang and then in /usr/lib/X11.

    Typically, the /usr/lib/X11/system.pmwmrc or system.mwmrc file contains the default configuration for the window manager. You can copy this file to your home directory under the name .pmwmrc or .mwmrc, and modify it to suit your needs. See ``Customizing the window manager'' for more information.

(This is a specific appearance and behavior resource.)

doubleClickTime (Class: DoubleClickTime)
This resource specifies the maximum time, in milliseconds, that can elapse between two clicks that are to be interpreted by the window manager as a double-click. The default value is 500 milliseconds. (This is a specific appearance and behavior resource.)

keyBindings (Class: KeyBindings)
This resource specifies a set of key bindings (a table that assigns an action to one or more key press events) that replaces the built-in key bindings of the window manager. The value should be the name of a key binding from the the window manager configuration file. The default value of the keyBindings resource is ``DefaultKeyBindings,'' as specified in the /usr/lib/X11/system.pmwmrc or /usr/lib/X11/system.mwmrc file. See ``Configuring window manager key bindings'' for more information. (This is a specific appearance and behavior resource.)

multiScreen (Class: MultiScreen)
If this resource is ``true,'' the window manager controls windows displayed in all screens of a display. The default value is ``false,'' which means the window manager manages only one screen by default. Note that this resource should not be used with the Xsco server, which does not support displays with multiple screens. (This is a specific appearance and behavior resource.)

quitTimeout (Class: QuitTimeout)
This is the amount of time, in milliseconds, that the window manager waits for a client to respond to a WM_SAVE_YOURSELF message. The client is supposed to reply by updating the WM_COMMAND property. The default value is 1000 milliseconds for mwm mode or 5000 milliseconds for pmwm mode. This resource applies only to those clients that have a WM_SAVE_YOURSELF atom but do not have a WM_DELETE_WINDOW atom in the WM_PROTOCOLS property of their top-level window. (This is a specific appearance and behavior resource.)

rootMenu (Class: RootMenu)
This resource specifies the name of the menu that is displayed when a mouse button is clicked in the Root window. The value of the resource must be the name of a menu defined in the window manager configuration file, the file specified by the resource configFile. The default for this resource is ``RootMenu,'' as specified in the system-wide window manager configuration file. See ``Customizing window manager menus'' for more information.

saveUnder (Class: SaveUnder)
This resource indicates whether ``save unders'' are used for window manager components. For this to have any effect, save unders must be implemented by the X server. If save unders are implemented, as they are in the Xsco server, the server saves the contents of windows obscured by windows that have the save under attribute set. If the saveUnder resource has a value of ``true,'' the window manager sets the save under attribute on the window manager frame for any client that has it set. If the value is ``false,'' save unders are not used on any window manager frames. The default value is ``false.'' (This is a specific appearance and behavior resource.)

screens (Class: Screens)
This resource specifies the resource names to use for the screens managed by the window manager. If the window manager is managing a single screen, only the first name in the list is used. If the window manager is managing multiple screens (which is not supported by the SCO OpenServer system), the names are assigned to the screens in order, starting with screen 0. Screen 0 is assigned the first name, screen 1 the second name, and so forth. The default screen names are 0, 1, and so on. (This is a specific appearance and behavior resource.)

wMenuButtonClick (Class: WMenuButtonClick)
If this resource is ``true,'' the window manager displays the Window menu in response to a button click on the Window menu button and leaves it displayed until another button click elsewhere on the screen. If this resource is ``false,'' the Window menu remains on the screen only as long as you press and hold the mouse button. This resource is ``true'' by default. (This is a specific appearance and behavior resource.)

wMenuButtonClick2 (Class: WMenuButtonClick2)
If this resource is ``true,'' and you double-click on the Window menu button, the window manager invokes the f.kill function to remove the client window. If this resource is ``false,'' double-clicking on the Window menu button only posts that menu. This resource is ``true'' by default. (This is a specific appearance and behavior resource.)

windowMenu (Class: WindowMenu)
This resource specifies the name of the menu that is displayed when the Window menu button is pressed. The value of the resource must be the name of a menu defined in the window manager configuration file, the file specified by the resource configFile. The default for this resource is ``DefaultWindowMenu,'' as specified in the system-wide window manager configuration file. See ``Customizing window manager menus'' for more information. (This is a client-specific resource.)


Previous topic: Icon box resources

© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003