Problem
I want my X Windows to come to the foreground when I move my mouse pointer on them _without_ having to click my mouse buttons. How do I do this?
Solution
Instructions vary depending on which release of the operating system you have.
In SCO Open Server Release 3.0 or earlier, this can be done readily with the ".Xdefaults" file:
1. From a non-GUI console screen log in as root.
2. In / create a file called .Xdefaults or if you wish this functionality to be user-specific, create this file in the user's home directory, for example:
/usr/rickda/.Xdefaults.3. In this file insert the following lines of text:
Mwm*keyboardFocusPolicy: pointer
Mwm*focusAutoRaise: true4. Now start the GUI by either typing "startx" at the # prompt OR switching to tty02 and logging in via scologin.
The windows should now "autoraise" when you move the mouse pointer to the window of your choice.
For SCO OpenServer Release 5.x do the following:
1. From a non-GUI console screen log in as root.
2. cd to /usr/lib/X11/app-defaults and vi the file called "Pmwm".
3. Find the line that reads "*keyboardFocusPolicy: explicit" and change "explicit" to "pointer". (Do not type the quotation marks.)
4. Save your changes by pressing the <Esc> key, and then typing ":wq!".
5. Now start the GUI by either doing "startx" at the # prompt or logging in via scologin.
See also
For additional tricks and tips on modifying the GUI see the "SCO OpenServer Graphical Environment Reference" documentation.