Ubuntu – How to disable alt+click window dragging

14.04unitywindow

In Ubuntu 14.04, when you hold Alt and click a window, you can drag it around. As I understand, you used to be able to disable it through gconf, but Unity doesn't read settings from here any more (hence not being able to change where the window buttons are any more).

There's no setting for this by default, and I can't find anything in Unity Tweak Tool either. Is there anyway to disable Alt+click window movement in 14.04?

Best Answer

In 14.04 (or 14.10, 15.04, 15.10, 16.04), to set the default key / value:

dconf write /org/gnome/desktop/wm/preferences/mouse-button-modifier  '"<Alt>"'

You can give it a (limited number of) other value(s), but DON'T set it to none like you could in the past. Nor should you set it to an empty string, Doing either will give you some trouble getting control over your mouse back, as I found out...

The practical value of this information is quite limited, since not many alternative keys are accepted. I found only Shift and Super to be working, which I doubt will give you the solution you'd like to have.

Of course you can use dconf-editor as well:

org>gnome>desktop>wm>preferences

enter image description here

Related Question