Ubuntu – Disable “middle click to lower window” behaviour on gnome

mousewindow-manager

I am using the Chromium web browser, and standard gnome (i.e. not unity). Chromium (like lots of things) has many tabs, and allows you to middle click on a tab to close the tab. But if I middle click on the blue part outside the tab, then it lowers the window underneath all the other windows. However I often find myself attempting to middle click on a tab to close it, and accidentally middle clicking outside the tab (which is the title bar in chromium), and hence accidentally lowering the window.

How do I disable this "middle click to lower window" behaviour?

Best Answer

For 14.04 (Trusty Tahr) it could be disabled with the command:

gsettings set org.gnome.desktop.wm.preferences action-middle-click-titlebar 'none'

Restore original state:

gsettings set org.gnome.desktop.wm.preferences action-middle-click-titlebar 'lower'

Also, the following variants are possible:

gsettings set org.gnome.desktop.wm.preferences action-middle-click-titlebar 'toggle-shade'
gsettings set org.gnome.desktop.wm.preferences action-middle-click-titlebar 'maximize'
gsettings set org.gnome.desktop.wm.preferences action-middle-click-titlebar 'toggle-maximize-horizontally'
gsettings set org.gnome.desktop.wm.preferences action-middle-click-titlebar 'toggle-maximize-vertically'
gsettings set org.gnome.desktop.wm.preferences action-middle-click-titlebar 'minimize'
gsettings set org.gnome.desktop.wm.preferences action-middle-click-titlebar 'shade'
gsettings set org.gnome.desktop.wm.preferences action-middle-click-titlebar 'menu'

But the bug is still there, option from the Google Chrome Settings "Use system title bar and borders" could lower the impact...