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?
For 14.04 (Trusty Tahr) it could be disabled with the command:
Restore original state:
Also, the following variants are possible:
But the bug is still there, option from the Google Chrome Settings "Use system title bar and borders" could lower the impact...
You can install Ubuntu Tweak and there should be a setting for it.
You can also get at it through
gconf-editor
. Go to apps > metacity > general > action_middle_click_titlebar and set it to "none". This value, "none", is case sensitive.I'll assume that you are using GNOME Shell. You can change this setting using a tool called gnome-tweak-tool, which appears as "Advanced Settings" in the activities overview.
First, install gnome-tweak-tool using Software Center.
Once it is installed, go to the Activities overview, type "Advanced Settings," and open the application that appears.
You can configure lots of things in this tool, but the one you're interested in is in the Windows section on the left side. Click that, and change "Action on title bar middle-click" to whatever you want.
This works for Chromium:
In case anyone wants to turn this on, there's a bug affecting it on recent Cinnamon. See https://bugs.chromium.org/p/chromium/issues/detail?id=777821.
The work around: Manually create a .config/gtk-3.0/settings.ini with:
Then restart chrome with chrome://restart
As of Ubuntu 18.04.1 LTS this problem is solved using
$ gnome-tweaks
window/middle and just clicking to none.