408

I use Ubuntu 12.04 on a two screen setup. Multiscreen on 12.04 has generally become much better, but there is one thing that really gets on my nerves: there's a mouse magnet of sorts on the middle edge (between the two screens). It's undoubtedly there to make it easier to interact with the launcher on the right screen. But I have enough trust in my mousing skills, the magnet is more annoying than helpful in my case. Can I disable it somehow?

Jorge Castro
  • 71,754
  • 2
    I don't know if it's there to make it easier to interact with the launcher or if instead it is to make it easier to snap windows to fill the right or left half of the screen. – Gus Sep 14 '12 at 23:06
  • 17
    If there are so many upvotes for this question, the sticky edges should by default be False. – don.joey Aug 14 '14 at 13:30
  • 2
    Ubuntu 18 users: please note that the default desktop (window manager) has changed in Ubuntu 18 from Unity desktop to Gnome. Per the question's tags, answers below apply to Unity. Information relating to sticky monitor-edges in 18 under Gnome can be found here and here. – Seldom 'Where's Monica' Needy Sep 27 '19 at 19:28

11 Answers11

495

There is a setting for it in Displays:

enter image description here

You may still get the behaviour if you have a launcher on the right monitor, so use the "Launcher Placement" option to select having your launcher on only the left screen. The stickyness between the screens is required for it to be easy to retrieve the launcher there.

You might need to log out and back in (or restart) for the changes to take effect.

Eliah Kagan
  • 117,780
Javier Rivera
  • 35,153
  • 2
    I had a similar effect, because the monitors had a space between them (in the dialog above). After dragging them together, the cursor appeared right away afer leaving the other screen. – iGEL Apr 30 '13 at 21:47
  • 17
    OMG! I can't believe I didn't see this. My life became so much easier. – Eduard Luca Jul 03 '13 at 11:24
  • 1
    Works in 13.04 too – metasequoia Jul 26 '13 at 20:15
  • 1
    It's surprising that one has to restart the login session to get this to work, though: after all, what does that mean the Apply button is actually for; and what good is the "Keep This Configuration" dialogue box for, when you won't even have the sum total of the configuration until you log in again? – J-P Nov 11 '13 at 09:06
  • 2
    FWIW, I didn't have to restart in 13.10. It took effect as soon as I hit 'Apply'. – Geobits Dec 11 '13 at 00:56
  • 2
    For 12.04 with the right monitor Launcher disabled, this did not work. The mouse moves easily from the left monitor to the right, but faces a big overcome_pressure value moving from right to left. I recommend Schinstad's answer instead. – H2ONaCl Jul 05 '14 at 05:11
  • 1
    Sticky edges are unchecked on 14.04, but still mouse sticks to the edge of monitor. It's not always, so I am not sure if it's bug or what. – user1880405 Sep 01 '14 at 12:24
  • 1
    Thank you. This thing was driving me insane. Why would anyone invent such a horrible feature?! – Cerin Apr 27 '15 at 15:11
  • Is there anyone that genuinely likes this "feature"? – David Jun 10 '16 at 17:39
  • 1
    Disabled it, edge still sticks (16.04LTS) – Jan M. Nov 10 '16 at 17:53
  • I wonder why they even decided to develope this, most useless feature of all times. – Black Mar 28 '17 at 12:42
  • You receive all of my love for this. – Jack Hales Oct 05 '17 at 05:35
  • In 16.04 sticky edges has no effect, okay it does, you can turn it off and bypass the center easily but that really doesn't solve the issue for me. IMO the best solution is to only have the launcher on one screen/side. If i had vertical positioned monitors i would have the launcher on both screens on the left, but as i have two horizontal i have the launcher on the left only(I could bottom it but thats out of reach for my liking), this allows me to still use sticky to quickly move applications. I love the instant maximise or full height that occurs when an application sticks its a time saver. – CodingInTheUK Nov 02 '17 at 08:41
  • 1
    I don't see this option on the GUI in 18.04 :( – Alexander Mills Feb 12 '20 at 18:33
50

The "hang" is a feature to make it possible to use the launcher in multi-monitor setups when it's set to auto-hide. It can be configured using gconf-editor. The relevant keys are

/apps/compiz-1/plugins/unityshell/screen0/options/stop_velocity, and

/apps/compiz-1/plugins/unityshell/screen0/options/overcome_pressure

Recommended settings to minimize the effect are:

  • overcome_pressure=1
  • stop_velocity=20

These settings do not completely stop the mouse from sticking, but makes it less likely it will do so. You can reduce stop_velocity further if you want.

Possibly also /apps/compiz-1/plugins/unityshell/screen0/options/reveal_pressure. The latter can be configured more easily in System Settings -> Appearance -> Behavior.

  • Thank you. I'm glad you found it useful. There is often more than one way to answer a question and I think the accepted answer is easier and more accessible to more people, so I'm very comfortable being in the second place :) – Jo-Erlend Schinstad Jun 20 '14 at 23:04
14

You can also modify the settings inside of CCSM if you prefer a GUI option. Its under CSSM > Unity > Experimental

There are options for Launcher Edge Stop Overcome Pressure and Edge stop Velocity which you can modify.

SirSid
  • 171
  • 2
    install ccsm with "sudo apt-get install compizconfig-settings-manager". Run with "ccsm". Search/filter for "ubuntu unity plugin", click on it. "Experimental" tab. "Edge stop velociy" of 15 - 20 worked for me. – Jeffrey Martinez Jan 06 '14 at 07:13
  • Or from GUI run Ubuntu Software Center, search for compizconfig-settings-manager, and install. Then click on Ubuntu Search, search for compizconfig-settings-manager and run it. – robocat Oct 19 '14 at 21:44
  • This worked relatively well for me. Do note that this is now placed under "Launcher" (not experimental anymore). Setting "Edge stop velocity" to 1, "Pressure decay rate" to 1 and "Duration of stickey edge release after Break" to 0 got rid of it (almost) completely. Otherwise you can set the launcher to only show on the left, and then it really doesn't show up anymore. – Bono May 18 '17 at 06:41
12

I personally thought it could be a wrong design in an extended desktop where in the middle of the desktop, a launcher is present. Yet, notice that the launcher has new settings :

enter image description here

The reveal sensitivity allows you to adjust how much the launcher is sensitive to your mouse crossing. The higher, the more you have to push the mouse against the launcher to reveal it. While auto-hide is activated, and about 27 % of reveal sensitivity, you can surf your mouse from the left external monitor to the right one or the opposite, easily without accidently revealing the launcher. Check the poll, if you want to vote for this option.

Thanks to Hanynowsky's answer https://askubuntu.com/a/111316/29209

Alessio
  • 694
  • 3
    I think there is an error in your answer: at least in my system, the lower the sensitivity, the more you have to push the mouse, not the other way. – Cmorales May 07 '12 at 13:22
6

For anyone elses reference. I ended up setting 'Edge Stop Velocity' to 10,
Launcher Edge Stop Overcome Pressure to 10, and Launcher Reveal Pressure to 10.

This seems to give the perfect balance for me. No lag when dragging windows between screen. Launcher is fairly easy to access on both monitors, No mis-reveals when going for the back button in the browser...

3

There is also the "Launcher Monitors" option in CCSM under "Ubuntu Unity Plugin". Switching this to "Primary Desktop" solved the problem for me in the laptop + external monitor setup.

Andreas
  • 39
2

Also if you want to leave it the way it is I have found that moving the mouse VERY quickly past the middle will let you pass right through it without even the slightest bit of hang time. I still changed it mainly because moving the mouse that fast was a bit annoying. Maybe someone will find it useful though.

dtigue
  • 89
  • 5
  • Even I found having to move the mouse pointer that fast to be annoying. Changing the setting is best. – Nav May 15 '13 at 06:38
1

in CCSM there is a setting under Experimental tab called Launcher Capture Mouse. if you disable it than the effect will completely disabled

materemias
  • 19
  • 2
1

The launcher capture mouse option in ccsm and the settings>displays "Sticky edges" options didn't stop the edge capture from right to left for me. The only thing that worked was setting the "Launcher Edge Stop Velocity" to 1 and having , that solved the issue for me. No other modifications required.

I have no interest in Unity launcher menu on my secondary right hand screen, and the hastle this caused in day to day use was an unwelcome pain. I didn't realise the ccsm Unity experimental settings were there so I had to live with it for about 4 months. God that was annoying.

BuZZ-dEE
  • 14,223
Lukeab
  • 41
  • 3
  • 3
    I had the same problem (right-to-left remained sticky). I solved it in Displays by setting Launcher Placement to All Displays, clicking Apply and Keep This Configuration, then setting it back to only the left display. Setting Edge Stop Velocity to 1 meant I couldn't open the Launcher (on left screen) with the mouse, and I still had a (slightly) sticky edge. – drevicko Aug 09 '13 at 00:49
  • @drevicko - you should add this as an answer, that's the only thing that worked for me – geoffrey Mar 24 '14 at 07:43
1

The problem only happens when you have the launcher placed on "All Displays". I had already changed "Settings > Displays > Sticky edge > OFF", but there was no improvement. So I changed "Settings > Displays > Launcher Placement" to my first monitor only (removing "All Displays"), and the problem disappeared.

0

As another option, you can always set the following gconf values under /apps/compiz-1/plugins/unityshell/screen0/options:

  • overcome_presure=1
  • stop_velocity=5

These settings will basically turn off sticky edges, as well as the ability to access the launcher by using the mouse.

You can then use the "Super" (Windows/Apple) key (or Alt+F1) to access the launcher via keyboard ;)

penreturns
  • 5,950
eugene
  • 1