Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Is it possible to disable the the new resize gripper that shows up in Ubuntu Natty/11.04?

enter image description here

share|improve this question
5  
just curious why do want to disable it? –  Alaukik Mar 28 '11 at 16:53
4  
Maybe because he uses something else (e.g. a keyboard shortcut) for resizing and this handle just needlessly takes up space? –  maaartinus Apr 1 '11 at 17:11
12  
Maybe because it draws over the top of the window contents in many applications and generally just looks annoying? –  Alistair Buxton Apr 4 '11 at 19:33

5 Answers 5

up vote 19 down vote accepted

It is possible to resize grippers or hide them by setting width and height to a zero. Put the following into ~/.gtkrc-2.0:

style "default-style"
{
  GtkWindow::resize-grip-height = 0
  GtkWindow::resize-grip-width = 0
}

class "GtkWidget" style "default-style"

or add this strings in "default" style body of /usr/share/themes//gtk-2.0/gtkrc:

  GtkWindow::resize-grip-height = 0
  GtkWindow::resize-grip-width = 0
share|improve this answer
    
This is superb. –  Oli May 27 '11 at 11:30
    
@user15328 Is this also possible for gnome3-based ubuntu(11.10,12.04)? –  Khurshid Alam Sep 11 '12 at 7:43

You can make the grippers off by default by recompiling gtk+2 and gtk+3:

sudo apt-get build-dep libgtk2.0-0 libgtk3.0-0
sudo apt-get install quilt
apt-get source libgtk2.0-0 libgtk3.0-0
export QUILT_PATCHES=debian/patches
cd gtk+2*
quilt new 999_remove_grips.patch
quilt edit gtk/gtkwindow.c

Find the line of code:

priv->has_resize_grip = TRUE;

Change TRUE to FALSE

quilt refresh
fakeroot dpkg-buildpackage
cd ../gtk+3*
quilt new 999_remove_grips.patch
quilt edit gtk/gtkwindow.c

Find the line of code:

priv->has_resize_grip = TRUE;

Change TRUE to FALSE

quilt refresh
fakeroot dpkg-buildpackage

Install the resulting deb packages and reboot.

(Of course, you'll have to do this every time there is an update for gtk)

share|improve this answer
    
I'm really glad @user15328 found a better solution that didn't require recompiling! Thanks for the effort though. –  akent May 7 '11 at 7:29

As a user, this isn't possible. Since it would require you to manually modify the source of an application and include the below line:

gtk_window_set_has_resize_grip(window, false);

This feature was backported from GTK3 and hence the developer docs for it are on this page.

As long as you are having no problems with the grips, it's best to leave them there as they serve a very important purpose: making it easier to resize windows.

share|improve this answer
    
While true, it is already easy to resize with the added shadows in Ubuntu 11.04. I instinctively reach for the nearest side or corner, rather than go to the bottom right hand corner. On another note, it appears that every application now has this gripper, so I don't think that line of code was added to every application, but some sort of setting forced a resize gripper. –  Jarrod Davis Apr 3 '11 at 22:54
    
As far as I understand, it's a backported GTK 3 default that can be changed by adding this line. You wouldn't have to change the code to add this gripper. –  htorque Apr 4 '11 at 7:52

This may be possible by editing the gtkrc theme files as I found a post on Deviantart that mentions using pixmap engine and a transparent png.

I tried a quick edit but couldn't get it to work however someone with more knowledge of themes might be more successful.

share|improve this answer

I found this to be the easiest way: http://www.omgubuntu.co.uk/2011/05/disable-the-resize-grip-in-ubuntu-11-04/

share|improve this answer
2  
While this may be a perfectly good way to remove the resize gripper, -1 for providing only a link. See: meta.stackexchange.com/questions/8231/… –  michaelms Aug 8 '11 at 18:19

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.