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

link|improve this question
feedback

migrated from stackoverflow.com Nov 19 '11 at 1:58

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

1 Answer

up vote 5 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>'
link|improve this answer
Great, it works, thank you very much. – Petike Nov 23 '11 at 17:39
This just reverses the effects of alt+click. All normal clicks acting like alt+click and alt+click results in a normal click. – nathaniel Dec 21 '11 at 5:01
Perfect, just what I was looking for! Photoshop requires alt + click for a number of things, and I've never use alt + click to drag windows. Thanks! – Costa Feb 29 at 16:40
feedback

protected by Community May 20 at 18:36

This question is protected to prevent "thanks!", "me too!", or spam answers by new users. To answer it, you must have earned at least 10 reputation on this site.

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