DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
Configuring window manager button bindings

Default button bindings

The button bindings that are provided with your system are referred to as default button bindings. Most default button bindings can be reconfigured.

All bindings are located in the /usr/lib/X11/system.pmwmrc file (for pmwm mode) or the /usr/lib/X11/system.mwmrc file (for mwm mode) in the Buttons section type. The default bindings are defined by a set named ``DefaultButtonBindings.'' System administrators can customize the functionality of some button bindings and make system-wide changes by editing this file. Users can customize the functionality of button bindings in their local environment by copying the appropriate system-wide window manager configuration file to either .pmwmrc (for pmwm mode) or .mwmrc (for mwm mode) in their $HOME directory.

The entries in the ``DefaultButtonBindings'' section of the system-wide window manager configuration file look similar to these:

   Buttons  DefaultButtonBindings
   {
           .         .             .
      <Btn1Down>   frame|icon   f.raise
      <Btn2Down>   frame|icon   f.post_wmenu
           .         .             .
           .         .             .
   	
   }

Each line in the ``DefaultButtonBindings'' section represents a button binding. A button binding consists of a button action (such as Btn1Down), the window manager context in which the action is valid (such as frame), and the function the action provides (such as f.raise). Button actions, contexts, and functions are discussed in more detail later in this chapter.

``Default button bindings'' lists the default button bindings.[1]

Default button bindings

Button action Context Function
For Pmwm mode:    
Btn1Down frame|icon f.raise
Btn2Down frame|icon f.post_wmenu
Alt Btn1Down title f.move
Alt Btn1Down frame f.resize
Btn1Down root f.menu "RootMenu"
Btn2Down root f.menu "RootMenu"
Btn3Down root f.menu "PanMenu"
# post menus    
Shift Btn1Click root f.menu "RootMenu"
Shift Btn2Click root f.menu "RootMenu"
Shift Btn3Click root f.menu "PanMenu"
# menus that pop-up under xdt
Ctrl Btn1Down root f.menu "RootMenu"
Ctrl Btn2Down root f.menu "RootMenu"
Ctrl Btn3Down root f.menu "PanMenu"
Shift Alt Btn1Down window|icon f.raise
Alt Btn1Down icon|window f.lower
Alt Btn2Down window|icon f.resize
Alt Btn3Down window f.move
For Mwm mode:    
Btn1Down frame|icon f.raise
Btn2Down frame|icon f.post_wmenu
Alt Btn1Down title f.move
Alt Btn1Down frame f.resize
Btn1Down root f.menu "RootMenu"
Btn2Down root f.menu "RootMenu"
# post menus    
Shift Btn1Click root f.menu "RootMenu"
Shift Btn2Click root f.menu "RootMenu"
# menus that pop-up under xdt
Ctrl Btn1Down root f.menu "RootMenu"
Ctrl Btn2Down root f.menu "RootMenu"
Shift Alt Btn1Down window|icon f.raise
Alt Btn1Down icon|window f.lower
Alt Btn2Down window|icon f.resize
Alt Btn3Down window f.move

You can reconfigure the default button bindings or create new button bindings and add them to the default binding set. In addition, if you want to underscore to yourself that you are using your own bindings rather than the default bindings, you can create your own sets of button bindings.

See also:


Footnotes

[1]
A context of icon indicates window manager icons, not icons on the Desktop.

Next topic: About window manager functions
Previous topic: Configuring window manager button bindings

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