Ubuntu – Disable automatic activation of Gnome Shell activities on mouse over

activities-overviewgnomegnome-shell

I have been searching for a way to disable the "hot corner" feature of the Activities button in Gnome Shell. I would prefer it to require a click such that I don't keep accidentally activating it upon mouse over.

Best Answer

For 11.10

The location of this was changed for 11.04, for 11.04 look below. You can do this with a quick edit of the file /usr/share/gnome-shell/js/ui/layout.js If you find the code:

this._corner = new Clutter.Rectangle({ name: 'hot-corner',
                                       width: 1,
                                       height: 1,
                                       opacity: 0,
                                       reactive: true });

Change reactive: true to reactive: false and it will disable the hot corner but still allow to activate the overview screen by clicking the Activities button or by pressing the Super (Windows) key.

I'm going to look into making an extension to modify this behaviour instead of direct modification of the panel.js file as it will be overwritten with updates.

For 11.04

Same as above but edit the file /usr/share/gnome-shell/js/ui/panel.js:

this._corner = new Clutter.Rectangle({ width: 1,
                                       height: 1,
                                       opacity: 0,
                                       reactive: true });