Ever since Windows 95, the operating system has had a feature called Xmouse where the focus of windows can follow the mouse pointer, meaning, as you move the mouse pointer around, the window which is under the mouse pointer becomes the active window. This feature is disabled by default. Let us see how it can be turned on.
Normally to make a window active you have to click on it. The Xmouse feature when turned on activates a window simply by hovering. Depending on what your settings are, it may raise the window, that is, bring the window to the front or it can simply make the window active but keep it in the background. In Windows versions before Windows Vista, Xmouse could be turned on using Microsoft's TweakUI powertoy.
How to turn on Xmouse active window tracking in modern versions of Windows
In Windows Vista and later versions such as Windows 7, and Windows 8/8.1, Microsoft added a built-in option to turn on Xmouse.
- Open Control Panel (see how if you don't know).
- Open Ease of Access Center.
- Click 'Make the mouse easier to use'
- Check the option 'Activate a window by hovering over it with the mouse' and click OK.
Now when you hover over various windows, they will be focused without clicking. They will also get auto raised, meaning the window on which the mouse hovers which be brought to the foreground.
How to make windows active but not raise them
Windows provides no UI option to not raise windows but still make the focus follow the mouse. However, there is a registry setting to keep Xmouse on but not automatically raise the window. After you configure that, background windows will become active if you hover over them but will stay behind the foreground window. To configure this,
- First make sure that 'Activate a window by hovering over it with the mouse' is turned on from Ease of Access Center -> Make the mouse easier to use.
- Next, open Registry Editor (see how).
- Go to this registry key:
- In the right pane, locate the value "UserPreferencesMask". This is a REG_BINARY value, expressed in hex numbers and many settings related to visual effects are stored in this one value. For windows to get focus but not get raised automatically, we need to subtract 40 bits from the first hex value. (40 bits because Windows adds 41 bits to the first hex value in UserPreferencesMask when it enables Xmouse, and only 1 bit is supposed to be set if you want Xmouse without autoraise behavior). In my case, the value was df,3e,03,80,12,00,00,00 but your value may be different. You can do the calculation to figure this out easily in Windows Calculator. Just start Calculator and switch to the Programmer mode from the View menu. Then select the Hex mode and select the Byte display size. In my case, df − 40 = 9f, so I changed it to 9f,3e,03,80,12,00,00,00.
- To actually change it, double click the UserPreferencesMask value and carefully select the first two bits and then type the new value.
- Now log off and log in back again to see the change. Windows will become active when you hover over them but won't be brought to the top.
Change the time out for how fast or slow windows get focus after hovering
There is one more tweakable parameter related to Xmouse behavior and that is the delay after which windows get active after the mouse hovers on them. To adjust this timeout,
- Open Registry Editor (see how).
- Go to the same registry key as above:
- In the right pane, locate the DWORD value called ActiveWndTrkTimeout.
- Double click the ActiveWndTrkTimeout value and change to the Decimal base. Enter the time in milliseconds (ms). 1000 ms means the window will become active after you hover over it for 1 second. If you set it to 0, the windows will get the focus instantly although we don't recommend that you set it to 0 even if you want the focus to be transferred faster - set it to 500 instead.
- Log out and log in again to see the change.
If you want to avoid registry tweaking and prefer a simple GUI tool to tweak this, get the app called Winaero Tweaker.
Winaero greatly relies on your support. You can help the site keep bringing you interesting and useful content and software by using these options: