Disable the 'Resize Window Grippers' in Ubuntu 11.04 Natty Narwhal

| Comments

I upgraded my laptop from Ubuntu 10.10 to 11.04 a little over a week before it was scheduled to be released. I ran into three problems:


Update 2011-05-10:

  • X.org was still crashing… Upgrading using the xorg-edgers ppa repository seems to have fixed it.
  • After reinstalling due to my recent btrfs crash, the Shadowgrounds games are now working fine. I know I was using Pulseaudio before the upgrade; Xubuntu installed Pulseaudio but it is not running. I am assuming this is the only difference.

The first problem was a showstopper, and I didn’t have the time to investigate the issue at the time so I just booted using the btrfs snapshot of 10.10 that I took before the upgrade. I’ve been running on that snapshot until this morning. I haven’t crashed yet, so hopefully that bug has been squashed…

That left me with these annoying grippers on my terminal and chat windows. They obscure a bit of text in the corner of terminals and they don’t fit quite right over the text input areas in my Pidgin windows. I’m sure they look out of place in other windows as well.

Some searching turned up a simple fix in one of the answers on askubuntu.com. At the time I am writing this, the answer has no up votes and I don’t have enough reputation on the site to place a vote. If you have reputation please go give it a vote!

To remove the resize handles you just have to add the following to your ~/.gtkrc-2.0 file:

1
2
3
4
5
6
7
style "default-style"
{
  GtkWindow::resize-grip-height = 0
  GtkWindow::resize-grip-width = 0
}

class "GtkWidget" style "default-style"

Disable the grips in Gnome 3 / Ubuntu 11.10

I was surprised and disappointed to see the window grips return to my Gnome Terminal windows after upgrading to Ubuntu 10.10. A bit of searching gave me the “fix” for Gnome 3.

Just add this to your ~/.config/gtk-3.0/gtk.css file:

1
2
3
* {
  -GtkWindow-resize-grip-default: false;
}

Comments