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.

It takes me about 5 tries to resize a window on my computer.

Is there a way to increase the resize margin on the edge of windows?

share|improve this question
+1. The single pixel you get on the left and right borders in the default theme (and on the bottom now too, in Maverick's default) is a cruel joke. –  bobince Sep 13 '10 at 21:02
This is still a relevant question. In Ubuntu 11.10, when not using Unity, my theme has borderless windows. It's supposed to have an invisible resize area outside the window, isn't it? Is there some way to enable this feature? –  Mojo Dec 12 '11 at 3:20
@bobince: seriously, how on earth could this ever have happened? it's the most intensely frustrating thing ever. –  Claudiu Feb 27 '14 at 22:37
This nonsense is STILL a problem in 14.04. I don't know why the UI designers think a 1-pixel window border is acceptable. And don't even get me started on the lack of a real scroll bar. –  Ron Smith Sep 25 '14 at 23:34
This is possibly the most irritating thing about Ubuntu that I've ever found. Thanks for this question, you saved my mouse from being thrown at the wall. :) –  laughing_man Mar 26 at 22:42

10 Answers 10

up vote 69 down vote accepted

As others have mentioned, it depends on the theme. Try a few out. What I frequently do instead is hold down Alt and middle-click and drag to resize, which works anywhere on the window.

share|improve this answer
Awesome, I didn't know that you can use Alt+MiddleClick to resize. I only knew Alt+LeftClick to move. –  pableu Oct 25 '10 at 8:25
Super late but, WOW! Awesome. –  RyanScottLewis May 14 '11 at 21:56
Okay, but what about laptop owners with touchpads? How can I perform a middle-click-drag with a Synaptics touchpad? –  MiKy Mar 21 '12 at 22:36
@MiKy: Clicking both buttons at once simulates a middle-click on most touchpads. So alt + mash both -> drag should do the trick. –  Jacob Peddicord Mar 23 '12 at 15:39
For me it was Alt+RightClick which resized the windows, while Alt+MiddleClick sent them to back. –  stackount Feb 5 at 16:14

To modify Ambiance to have a wider margin, open /usr/share/themes/Ambiance/metacity-1/metacity-theme-1.xml and increase the values of the following properties:

<distance name="left_width" value="1"/>
<distance name="right_width" value="1"/>
<distance name="bottom_height" value="1"/>

You may want to back up the original file before modifying, and/or make a duplicate of the entire theme.

Note that you can also resize windows by pressing Alt + Button2.

share|improve this answer
Why not package it by default in Ubuntu? There are drawbacks for this solution? –  Extender Oct 21 '10 at 2:28
A major drawback would be that a wide visible border is usually aesthetically displeasing, as well as not being in line with other theme elements that have thin outlines. See blogs.fedoraproject.org/wp/mclasen/2010/10/09/getting-a-grip and blogs.gnome.org/metacity/2010/01/20/… for better solutions for defaults. –  mgunes Oct 21 '10 at 2:38
Setting the bottom_height to 3 gives you a much larger area to grab without feeling you ruined the design of the theme. Thanks for this answer! :) –  PKKid Feb 15 '12 at 1:10
It is a great approach, specially for netbooks when "smashing both buttons of a touchpad simultanesosuly while holding alt and perform a drag" is as cumbersome as trying to hit that thin border –  MestreLion May 18 '12 at 19:54
I don't remotely feel like it's a major drawback. The difference is subjective, and could easily be preferable with wider borders. Meanwhile the annoyance and number of person-hours lost fiddling with this ridiculous issue on all levels is immense. –  Jonathan Hartley Apr 28 '14 at 15:41

There is also a default keyboard short-cut in gnome -- Alt-F8 -- that is a 'resize window' function.

share|improve this answer
+1. Worth noting that this resizes the active window, not necessarily the one the mouse is over. –  Ian Mackinnon Sep 21 '11 at 18:16
+1. Very nice approach! And you can also navigate to the desired border using the arrow keys. So ALT+F8, release, choose border with arrow keys, use arrows to resize, ESC to leave resize mode –  MestreLion May 18 '12 at 19:58

The GNOME desktop environment is designed to give priority to usability and simplicity over customizability. Hence, the width of the window border is something that is not easily changeable. In all practical considerations, Jacob's recommendation that you use Alt+middle-click instead of dragging the window borders is likely to be the best solution for most users.

With that said, the size of the window border does vary between Metacity themes. As a first step, you might try picking a different theme from GNOME-Look.org.

If you're really determined to adjust just the window border without changing the rest of the theme, it is possible to modify existing themes. Here's a reference to get you started.

share|improve this answer
Just a note: pressing and dragging with the middle mouse button is not always possible, like on some notebook touchpads (like mine)... –  MiKy Dec 16 '10 at 19:07
Excellent point. One workaround that should be fine for most people would be to check /apps/metacity/general/resize_with_right_button in gconf-editor. I've only seen a few graphics programs (Inkscape comes to mind) where this setting gets in the way. –  ændrük Dec 16 '10 at 20:41
Unfortunately, the Alt-MiddleClick does not work on remote desktops. The Alt-F8 does seem to work. –  keepitsimpleengineer Dec 2 '11 at 21:31
One cannot claim that usability is a priority if this fiddly, annoying, difficult to use default is being kept just to satisfy some subjective design aesthetic. –  Jonathan Hartley Apr 28 '14 at 15:43
Simplicity is fine BUT ONLY IF THE DEFAULTS WORK. –  Zan Lynx Mar 6 at 1:33

It looks like this will be fixed in Natty.

share|improve this answer
It wasn't. Or they reverted back to 1-pixel borders in Precise –  MestreLion May 18 '12 at 19:59

(This is from my answer to a duplicate question that was closed. )

It depends on the theme used. You could change your theme, or edit the theme if you really wanted to, but an easier and more consistent way is to hold down Alt and drag with the middle mouse button. You can imagine it as slicing the window into a 3x3 grid, and clicking in any rectangle but the center one will allow you to drag the appropriate side or corner.

Note that Alt + MiddleButton is the default configuration. To change it (at least in Compiz):

  1. Go to System -> Preferences -> CompizConfig Settings Manager if running classic Gnome, or search for CompizConfig Settings Manager in the Dash if running Unity.
  2. Find the Resize Window plugin; it's under Window Management.
  3. Open it and go to the Bindings tab if you aren't already there.

The last two settings are called Initiate Window Resize. One of them is the middle click option described above; the other is a similar keyboard binding that allows you to resize with the keyboard arrow keys (as well as the mouse without clicking).

share|improve this answer

The thickness of the window border is set by the theme you are using.
So to make the window edges bigger try a different theme.

share|improve this answer
I want to make an addition: You don't have to give up your theme and pick a new one with altogether. You may change just the border. Go to System > Preferences > Appearance > Theme > Customize > Window Border and choose something with a thick border. (For example HumanLogin if you have a light colour background image, or SphereCrystal if you have a darker background, to obtain some contrast to see the borders more clearly). –  marenostrum Oct 20 '10 at 18:00

Alt+MiddleButton is the right way to resize windows; it's right are your hands, and you don't have to move the pointer to the window edges first.

However, I still find that the scroll overlay often gets in my hair. So I went for a different approach and disabled the overlays all together! Scroll still works, of course, and the nice orange scroll indicator is still present. On Ubuntu 13.04, I did it like this:

gsettings set com.canonical.desktop.interface scrollbar-mode 'overlay-touch'

You can revert it by doing:

gsettings set com.canonical.desktop.interface scrollbar-mode 'overlay-auto'
share|improve this answer

I am a newbie with Linux so this could be complete nonsense... you can change the themes or edit the default theme (Maverick?) as above but: isn't it the case that you can easily change the size by moving the mouse pointer to the top right or top left corners of these windows? The margins there seem more civilized by default... so I'm suggesting you resize using these corners exclusively... and then move the window as needed...

share|improve this answer

OK, to maximize the window the keyboard shortcut is ctrl+super+ up(on the keyboard) to minimize it is ctrl+super+down. To resize it is alt+ F8

share|improve this answer

Your Answer


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.