|
|
Using the X Window System > Chapter 7 The Window ManagerMouse Button Bindings |
|
The window manager recognizes the following button operations:
You associate a button operation with a window management function using a button binding. A button binding is a command line you put in the .mwmrc file that associates a button operation with a window manager function. The OSF/Motif Window Manager comes with the following built-in button bindings. Table 7-18 Built-In Button Bindings
These bindings are fixed—they cannot be replaced by other bindings. However, you can add to some of them (see "Modifying Button Bindings and Their Functions.") For example, you can specify an additional function for double-clicking button 1 in an icon, but the double click will also normalize the window. Mwm provides an additional default binding that can be deleted or replaced: Table 7-19 Additional Button Bindings
This binding is listed in the following section of the .mwmrc file.
The binding can be removed or altered by deleting or editing the line that begins with <Btn1Down>. (In order for the editing to have an effect, the buttonBindings resource must be set to DefaultButtonBindings, and you must restart the window manager.) You can modify the button bindings section of your .mwmrc file to suit your individual needs. The syntax for button bindings is as follows:
The following button binding contexts are recognized by the window manager:
Button bindings can be modified by:
To create a new button binding set:
The OSF/Motif Window Manager has another resource for controlling button behavior. This resource, doubleClickTime, sets the maximum time (in milliseconds) that can elapse between button clicks before a double-click becomes just "two clicks in a row." In other words, if two clicks occur in less than the maximum time, they are assumed to be a double-click; if two clicks occur in a time greater than the maximum time, they are assumed to be two single clicks. The default is 500 (milliseconds). |
|