Wednesday, July 13, 2011

RIP Gnome3 Hot Corner


After weeks of anguish I have finally figured out how to disable the hot corner on Gnome 3 that has been the bain of my existence since switching to Fedora 15.

What's the problem with a Hot Corner?

Well if aren't familiar with Gnome 3 there is an Overview that allows you to quickly open programs and switch between currently open ones.
The hot corner is in the top left corner of the screen and activates when the cursor is in the (0,0) coordinate. The problem with the hot corner is that you often accidentally activate it when trying to click things close to the top left corner. It's also highly redundant since the "Activities" button there has the same functionality. Personally, when I want to use the Overview I just hit the super key (windows key).

The Solution

You need to modify the javascript backend for gnome panel. Yeah Gnome 3 is partly in javascript... You'll find the necessary file under /usr/share/gnome-shell/js/ui/. Next you want to open panel.js in your favorite text editor. I like Geany :P You'll need to find this line:

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

and modify it to say "reactive: false". This will disable the hot corner functionality without disabling Overview.

I found this solution here and credit goes to Jinx.


  1. Thanks for this. Also, Javascript?

  2. Yeah Gnome3 is Javascript and CSS with a little C

  3. In the latest release (11.10 Oneiric Ocelot) this line of code is in a different folder. Check out this video for instructions:

  4. Thanks for the tip... looks like it's moved to layout.js (same directory) as of january 1st, 2012. Just search for "new Clutter.Rectangle".

  5. In fedora 16 the file you need to modify is layout.js and not panel.js