Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can I disable the alt+click combination from moving windows in Ubuntu 11.10 (unity-2d)?

share|improve this question

migrated from Nov 19 '11 at 1:58

This question came from our site for professional and enthusiast programmers.

up vote 16 down vote accepted

With Unity-2D, this is controlled using the /apps/metacity/general/mouse_button_modifier GConf key. To disable Alt+Click dragging, run

gconftool-2 --set /apps/metacity/general/mouse_button_modifier --type string disabled

To re-enable it, run

gconftool-2 --set /apps/metacity/general/mouse_button_modifier --type string '<Alt>'

Note that this GConf key controls several mouse shortcuts:

  • Alt+Click: Move windows
  • Alt+Middle Click: Resize windows
  • Alt+Right Click: Open a generic window menu

N.B: Disabling the modifier in this way can lead to the Alt+Drag behavior when no modifier keys are pressed (Every drag behaves like Alt+drag) Setting the modifier to '<SUPER>' makes the Super/Windows key the modifier. Alt+Drag can then be used by applications, and Super+Drag to move the window.

gconftool-2 --set /apps/metacity/general/mouse_button_modifier --type string '<SUPER>'

for Unity 3D

share|improve this answer
Note: If you're like me, you thought this applies to the "Gnome-classic (no effects)" session as well (since it uses metacity too). But no. Even though it uses metacity, you need to disable it in compiz as described here. Then it's disabled both in "Gnome-classic" (Compiz) and "Gnome-classic (no effects) (metacity) sessions. – Stefan Monov Dec 2 '12 at 16:28

protected by Community May 20 '12 at 18:36

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.