After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 645082 - gnome-terminal opens with 2 lines less height than requested
gnome-terminal opens with 2 lines less height than requested
Status: RESOLVED OBSOLETE
Product: gnome-terminal
Classification: Core
Component: general
2.32.x
Other Linux
: Normal normal
: ---
Assigned To: GNOME Terminal Maintainers
GNOME Terminal Maintainers
Depends on:
Blocks:
 
 
Reported: 2011-03-17 22:58 UTC by Jeremy Bicha
Modified: 2011-05-04 19:05 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Jeremy Bicha 2011-03-17 22:58:22 UTC
By default, gnome-terminal opens with 80x24 but in reality, it opens with 80x22. Clicking in the menu Terminal>80x24 increases the height by two lines.

gnome-terminal always opens with 2 lines less height than requested.

This can be seen even more clearly by running this command:

gnome-terminal --geometry=80x4

Note that it does work display at the correct size with:
gnome-terminal --geometry=80x4 --hide-menubar

Originally reported at https://bugs.launchpad.net/bugs/734905
Comment 1 Christian Persch 2011-03-17 23:20:56 UTC
'Classic desktop' means it's not running 'unity' but metacity, right? 

I cannot reproduce this here using gnome-terminal 2.91, neither on a gtk2 nor a gtk3 build, using metacity as window manager on fedora 13.
Comment 2 Jeremy Bicha 2011-03-18 23:48:34 UTC
Classic Desktop is what Ubuntu is calling the Gnome 2.* desktop so for most users it's actually compiz but it falls back to metacity for those without adequate 3D drivers. And Unity in Ubuntu 11.04 and later is running compiz too.

Now I wonder why I experience the bug even when I ran the current git version which wouldn't have any Ubuntu-specific patches.
Comment 3 Christian Persch 2011-03-19 00:04:01 UTC
Hmm, ok, so that was with compiz. Can you try if it works using metacity (with compositing *disabled* [it's the default, but do check that the /apps/metacity/general/compositing_manager gconf key is set to 'false']) instead of compiz ?

Also, there have been some geometry bugs fixed in jointly in g-t, vte, and gtk 3, so it's possible that this is fixed on gtk3.
Comment 4 Jeremy Bicha 2011-03-19 00:45:11 UTC
I still get the bug in metacity and in gnome-shell.
Comment 5 Jeremy Bicha 2011-03-19 00:53:31 UTC
I don't think I'm using gtk3 but how would I check?
Comment 6 Christian Persch 2011-03-19 01:08:34 UTC
Afaik ubuntu doesn't build g-t (or really anything) with gtk3, but you can check with 

ldd `which gnome-terminal` | grep libgtk

which would show libgk-3.so.0 for a gtk3 build.
Comment 7 Jeremy Bicha 2011-03-19 02:08:45 UTC
The default even for trunk is for g-t to be built with gtk2 so I rebuilt it to two different directories, one with gtk2 and one with gtk3 and I can confirm that I see the bug in the gtk2 version but not in the gtk3 one.
Comment 8 Christian Persch 2011-05-04 19:05:09 UTC
gtk2 won't be supported in 3.1, so let's call this OBSOLETE.