Ubuntu: How do I disable window move with alt + left mouse button in GNOME Shell?



Question:

There are lots of posts on this about Unity, this is about gnome-shell.

As with other posters, I use apps (Inkscape in particular) that uses Alt-Click and Alt-drag. Gnome-shell is grabbing this off me and thus disabling features in the application.

I have tried

  • using ccsm's Move plugin - you can turn this off and you still get Alt-drag window moving.

  • using gconf editor to change /apps/metacity/general/mouse_button_modifier - this has no effect AFAICS.

It's really hindering me. Otherwise I find gnome-shell a really productive environment.


Solution:1

First of all, install dconf-tools Install dconf-tools.

To do that, run the following command:

sudo apt-get install dconf-tools  

Then open it, Alt+F2 â†' dconf-editor.

Scroll down to org â†' gnome â†' desktop â†' wm â†' preferences â†' mouse-button-modifier â†' Set it to whichever key you like.

enter image description here


Or, equivalently,

gsettings set org.gnome.desktop.wm.preferences mouse-button-modifier "<Super>"  

in the terminal. (This requires neither dconf-editor, nor dconf-tools Install dconf-tools)

Warning: Setting it to nothing means that all clicks move windows, instead of disabling it!


Solution:2

For Cinnamon Desktop do the following:

  1. Go to System Settings â†' Windows.
  2. Click on Behavior tab
  3. Under Moving and Resizing Windows section change the value for Special key to move and resize windows to whatever suits you.


Solution:3

To resolve the Alt+Click move window dragging problem:

sudo gconftool-2 --set /org/gnome/desktop/wm/preferences/mouse-button-modifier --type string '<Super>'  

Does the same thing, really, just with a different config tool, and less hunt-and-click.

For newer versions using dconf/gsettings, use this:

gsettings set org.gnome.desktop.wm.preferences mouse-button-modifier "<Super>"  


Solution:4

I set Alt+Super like a temporary solution. So I can use the Alt key in Inkscape and Super for activities.


Solution:5

In UBUNTU 14.04 LTS use in dconf syntax like

<Alt><Super>  

Works well for me.

BTW: If you set something wrong, it starts to move window on every click. Use to navigate to "Set to Default" button. And hit .

enter image description here


Solution:6

Use the Tweak Tool (gnome-tweak-tool):

Windows > Window Action Key


Solution:7

Go to System Settings Select Keyboard On the bottom left click on 'Layout Settings' Select you language and click the 'Options' button on the lower right Select 'Alt/Win key behavior' Change it to the one you like. I use 'Left Alt is swapped with Left Win'


Solution:8

in CentOS 7, I had to use gsettings set org.gnome.desktop.wm.keybindings \ activate-window-menu "['<Alt>F10']" This had been unspecified, but when not specified, the mouse middle button activated the window menu. Even setting gsettings set org.gnome.desktop.wm.preferences mouse-button-modifier '<Super>' did not move that action to Alt-middle; I had to bind activate-window-menu.


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »