Active Window



next up previous contents index
Next: Menus Up: Managing Windows Previous: Manipulating Windows with

Active Window

Remember, only one window at a time can receive input from the keyboard. This window is in focus or active. All other windows can display output simultaneously (in the time-sharing, or round-robin, sense) with each other as well as with the window in focus. However, only the in-focus window can receive input.  

By clicking on windows, notice that the Motif Window Manager highlights the border of the in-focus window. The in-focus window is not necessarily the window on top. There are two ways to determine which window gets the focus. In one, the keyboard focus automatically follows the pointer and the window in which the mouse resides receives the focus. In the other method, you must click your mouse in the window you want in focus.

The process of placing a window in focus or activating it can be combined with that of raising a window on top of all others. In auto raise the window automatically is raised when it receives the focus (we prefer this option). Without auto raise, you must click on the window frame with the left mouse button to raise the window-even if it is active. Use the .Xdefaults file to tell X what your choice is, as follows:


! Focus policy This is comment line. Mwm*keyboardFocusPolicy: explicit Add ! to deactivate. ! Or !Mwm*keyboardFocusPolicy: pointer Remove ! to activate. ! And select auto raise True or False Mwm*focusAutoRaise: True Add ! to deactivate. !Mwm*focusAutoRaise: False Remove ! to activate. !



next up previous contents index
Next: Menus Up: Managing Windows Previous: Manipulating Windows with