5

Possible Duplicate:
How do I set focus follows mouse?

I am trying to enable the feature where a window becomes focused (whether in foreground or background) when the mouse hovers over it.

In previous version of Ubuntu this was changed using System > Preferences > Windows but that option is no longer there.

How do I change this setting with the new Ubuntu 11.10?

SaultDon
  • 1,722

2 Answers2

8

You need the gnome-tweak-tool to do this. Under "Windows" you have the option to set the mode of the window focus to mouse.

For 14.04 and Unity, the right tool is unity-tweak-tool. Find the feature under (name/selection=name/,): Window Management, Additional Settings,Automatic Raising=Off, Fixing Behaviour: Mouse.

muru
  • 197,895
  • 55
  • 485
  • 740
Daniel W.
  • 3,436
3

You can make this setting from the command line as well. The advantage is that you do not install a number of dependencies that go with gnome-tweak-tool.

gconftool-2 --type string --set /apps/metacity/general/focus_mode mouse
gconftool-2 --type boolean --set /apps/metacity/general/auto_raise true
gconftool-2 --type string --set /apps/metacity/general/auto_raise_delay 600

The only problem with these settings is that Unity puts the menus for a window at the top of the screen, so it is difficult to use focus follows mouse as the menus may change when you move the mouse.

focus follow mouse works better, IMO, with kde, xfce, or gnome-shell

Panther
  • 102,067