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 528304 - New tabs shrink terminal
New tabs shrink terminal
Status: RESOLVED OBSOLETE
Product: gnome-terminal
Classification: Core
Component: general
2.30.x
Other Linux
: Normal normal
: ---
Assigned To: GNOME Terminal Maintainers
GNOME Terminal Maintainers
[geometry]
: 535837 552286 560481 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2008-04-15 20:44 UTC by Sven Arvidsson
Modified: 2013-10-09 12:01 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Sven Arvidsson 2008-04-15 20:44:44 UTC
[ From http://bugs.debian.org/472672 ]

A Debian user reported this rather interesting bug:

"1. Open terminal window
-> 80x24 terminal
2. Open Tab
-> Whole window shrinks in height in spite of the fact
   that the tab bar is no added, so the terminal size
   is now 79x21
3. Close Tab
-> terminal keeps 79x21, whole windows shrinks, because
   tab bar disappears
4. Open Tab
-> terminal is now 78x18, whole window shrinks
5. Close Tab
-> terminal keeps 78x18, tab bar disap.
6. Open Tab
-> keeps 78x18, tab bar added
and so on

Terminal size doesn't go down under 78x18. The closing tab things
works as expected (keeps terminal size and remove tab bar)."

This apperently only happens on an amd64 system, when Metacity has the compositing feature turned on. 

Details such as a the gnome-terminal configuration and .bashrc/.bash_profile are available at the URL above.
Comment 1 Christian Persch 2008-06-15 21:19:31 UTC
*** Bug 535837 has been marked as a duplicate of this bug. ***
Comment 2 Christian Persch 2008-09-15 11:27:38 UTC
*** Bug 552286 has been marked as a duplicate of this bug. ***
Comment 3 Christian Persch 2008-09-15 11:28:06 UTC
Can you try if the same happens with another compositing window manager (e.g. compiz), or if this is specific to metacity ?
Comment 4 John Keller 2008-09-18 06:14:38 UTC
Yes, I can confirm that the exact same problem appears with compiz fusion.

I can't see gnome-terminal's window measurements under compiz (I guess resize event is intercepted before the app gets it), but the dimensions shrink in the same way as under metacity when it's compositing manager.
Comment 5 Christian Persch 2008-09-18 11:16:50 UTC
Are you all using debian? There's a suspicious patch in debian's g-t,
http://patch-tracking.debian.net/patch/series/view/gnome-terminal/2.22.3-2/04_resized_on_tabs_switch.patch .
Comment 6 John Keller 2008-09-18 15:33:57 UTC
I should have mentioned it when I added to the report, but I'm seeing this using Mandriva cooker (currently in the final beta phase ["RC" isn't quite really "RC"] before 2009.0).
Comment 7 Nicofo 2008-09-18 18:37:57 UTC
Additional info: (I first reported in bug 535837):
I use Fedora, the bug is also present under metacity and compiz.
Comment 8 Christian Persch 2008-09-18 18:59:05 UTC
Can you please all try a pristine build from gnome sources, ie. without any vendor patches?
Comment 9 John Keller 2008-09-19 10:53:13 UTC
(In reply to comment #8)
> Can you please all try a pristine build from gnome sources, ie. without any
> vendor patches?

I'm sorry, I don't think I'm going to have enough time for that in the near future.

I was going to file a downstream bug with Mandriva, then found one already open:
  https://qa.mandriva.com/show_bug.cgi?id=27702

From the looks of comments on that bug, this seems to have been going on a for a while. I'll add a comment there. Maybe they can help with info about their patches?
Comment 10 Frederic Crozat 2008-09-19 12:41:50 UTC
as you can see http://svn.mandriva.com/cgi-bin/viewvc.cgi/packages/cooker/gnome-terminal/current/SOURCES/  , the patches in Mandriva package don't change anything in gnome-terminal behaviour.
Comment 11 Christian Persch 2008-10-09 12:48:49 UTC
I'm unable to reproduce this here, using metacity, either with or without compositing, on ubuntu intrepid x86.
Comment 12 John Keller 2008-10-11 14:15:33 UTC
Hoory! I can confirm that as of gnome-terminal 2.24.0, I don't see this problem anymore. (My previous comments were with 2.23-series versions, though like Fred said, without any patches that would explain the behavior.)

Tested under both compiz and metacity with compositing (metacity without compositing never exhibited the problem, and still doesn't).

This is using Mandriva Linux 2009.0, which is the upstream version plus "various bug fixes from SVN" (according to the package changelog). Here's the patch:
http://svn.mandriva.com/cgi-bin/viewvc.cgi/packages/cooker/gnome-terminal/current/SOURCES/gnome-terminal-2.24.0-svnfixes.patch?revision=290546&view=markup

Looks to me like the patch is for bug 453193, but I thought I'd mention it anyway.

Christian: not sure what did it between the previous pre-release versions and 2.24.0. I should mention that I was using the proprietary nVidia driver in all cases. Perhaps there was a bug in it that affected geometry (since the bug only appeared when using a compositing manager), and now it's fixed.

Sven, Nicofo: my guess is that if you try the latest version of GNOME, the problems will be gone. Or simply wait and install the final version of your distribution when it comes out.

...or don't wait, and switch to Mandriva, first with GNOME 2.24. ;-)
Comment 13 John Keller 2008-10-11 14:17:02 UTC
Oops, sorry Sven. Missed that you were reporting for a Debian user. In that case, maybe pass the information on to the Debian bug report/reporter...
Comment 14 John Keller 2008-10-19 13:44:28 UTC
Ah ha! Found a new test case where this bug still appears:

1) launch gnome-terminal
2) maximize window
3) open new tab
4) restore window

I start with --geometry=100x30 ; after the above sequence, my window is 99x27 characters (as shown by the hint when the resize starts, but without moving the mouse).

This is with gnome-terminal 2.24.0. Note that interestingly, the bug appears using the above procedure both with and without a compositing window manager. Before, I saw this behavior when the window was in the "normal" non-maximized state but only with a compositor.
Comment 15 Christian Persch 2008-10-19 13:49:22 UTC
That's not the same bug as comment 0 refers to. (I can repro this though, but I'm not sure it's really a bug.)
Comment 16 John Keller 2008-10-19 13:59:31 UTC
Hmm, well that was the behavior that I was seeing with a "normal" (non-maximized) window in bug 552286 (marked as dup) and my comment 4 to this bug. The only difference is, I no longer see the behavior in comment 4 (per comment 12).

But the "add tab = window shrinks" behavior is entirely consistent with what I was seeing before, down to the same geometry change when shrinking (see bug 552286 and comment 12 here).

If that's not a bug, not sure what it is. ;-)
Comment 17 Christian Persch 2008-11-12 13:10:41 UTC
*** Bug 560481 has been marked as a duplicate of this bug. ***
Comment 18 Arnaud B. 2008-11-12 14:40:42 UTC
(In reply to comment #17)
> *** Bug 560481 has been marked as a duplicate of this bug. ***

I don't know exactly how works this bugzilla, but I think bug 560481 is not a duplicate : it's quite specific because of compiz-specific and three-or-more tabs having different font-size...
Comment 19 Nicofo 2009-02-17 19:34:25 UTC
(In reply to comment #12)

> Sven, Nicofo: my guess is that if you try the latest version of GNOME, the
> problems will be gone. Or simply wait and install the final version of your
> distribution when it comes out.
> 
> ...or don't wait, and switch to Mandriva, first with GNOME 2.24. ;-)
> 

Well, it's not the case: I have now Fedora 10, which ships with gnome-terminal-2.24.3-1.fc10.i386 ==> the bug is still present: nothing has been improved...
Comment 20 John Keller 2009-02-18 09:46:18 UTC
(In reply to comment #19)
> Well, it's not the case: I have now Fedora 10, which ships with
> gnome-terminal-2.24.3-1.fc10.i386 ==> the bug is still present: nothing has
> been improved...

I'm not using compiz currently, but when I last tested it was fine. Maybe you could test under Metacity with and without compositing to confirm for Christian whether the bug appears in other cases, as I did under Mandriva?

And I should (re)mention: I'm still seeing the bug when I open a new tab while the window is maximized. When restored, its geometry has changed as a result of the new tab action done while maximized. (See comment #14.)
Comment 21 Nicofo 2009-02-18 21:51:35 UTC
(In reply to comment #20)

> I'm not using compiz currently, but when I last tested it was fine. Maybe you
> could test under Metacity with and without compositing to confirm for Christian
> whether the bug appears in other cases, as I did under Mandriva?

Yes, sorry, I have forgotten to add that for me the bug is still present under
- metacity (so without compiz)
- KDE (kwin with desktop effects)
- KDE (kwin without desktop effects)
I use the gnome-terminal given by Fedora 10 after a fresh install.
Comment 22 rollercow 2009-11-30 14:29:17 UTC
I'm still seeing this bug with 2.28 as packaged by Debian (Under compiz)
Comment 23 Christian Persch 2009-11-30 14:41:07 UTC
@rollercow: Please try if this also happens when using metacity (with compositing disabled) as window manager.
Comment 24 rollercow 2009-11-30 15:03:37 UTC
Metacity - compositing disabled it behaves correctly, with compositing enabled it misbehaves as per this bug
Comment 25 Michał Sawicz 2010-06-02 00:33:07 UTC
I can confirm this for both metacity 2.30.1 with compositing and GNOME Shell 2.29.1.
Comment 26 Michał Sawicz 2010-06-02 00:33:54 UTC
Oh and that's gnome-terminal 2.30.1, too.
Comment 27 Christian Persch 2013-01-23 18:52:42 UTC
This is possibly fixed on git master.
Comment 28 Karl-Michael Schneider 2013-01-24 18:01:54 UTC
I see a similar, though not the same behavior in gnome-terminal 3.4.1.1 (Ubuntu Precise). When you open a new tab, the window height increases by two lines. When you close the tab, the window size decreases by one line. So for each open/close tab cycle, the window gets higher by one line.