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 563374 - Gnome terminal discards lines when maximized
Gnome terminal discards lines when maximized
Status: RESOLVED DUPLICATE of bug 588033
Product: vte
Classification: Core
Component: general
0.10.x
Other All
: Normal normal
: ---
Assigned To: VTE Maintainers
VTE Maintainers
Depends on:
Blocks:
 
 
Reported: 2008-12-05 20:04 UTC by George Panagopoulos
Modified: 2009-07-10 10:23 UTC
See Also:
GNOME target: ---
GNOME version: 2.23/2.24


Attachments
Test patch, seems to fix the problem for gnome-terminal 2.26.0 (626 bytes, patch)
2009-04-13 03:16 UTC, Mateus César Gröess
rejected Details | Review

Description George Panagopoulos 2008-12-05 20:04:57 UTC
Please describe the problem:
When gnome terminal runs maximized and there is only one tab opened(i.e. the tab selection below the menus does not appear) some lines are discarded from the first tab when a new tab is opened. This only happens if the tab is full (i.e the scroll bar appears).

Steps to reproduce:
1. Open gnome-terminal and maximize it
2. Create some output until the scroll bar appears
3. Open a new tab
4. Go back to the first tab


Actual results:
Some lines are cut off.

Expected results:
See all the text that was on the first tab before opening the second one.

Does this happen every time?
Yes.

Other information:
OS: Fedora 10.
Comment 1 Bruno Boaventura 2008-12-06 13:09:24 UTC
I can confirm this bug.
Comment 2 George Panagopoulos 2008-12-06 19:45:13 UTC
A useful observation is that when the window is not maximized and the second tab is opened, the window is resized to fit the tab selection bar. So, when the window is maximized there is no space for the window to be resized and thus the text box is resized truncating the last few lines.

Two bugs arise here: 1. The window should not be resized when the second tab is opened and 2. GtkTextView, when resized should not truncate the last few lines.
Comment 3 Behdad Esfahbod 2008-12-06 19:57:58 UTC
Can someone test with vte 0.19.3 please?
Comment 4 Christian Persch 2008-12-06 20:09:49 UTC
Reproducible using g-t with vte trunk.
Comment 5 Christian Persch 2008-12-15 18:41:05 UTC
-> vte .
Comment 6 Mateus César Gröess 2009-04-13 03:16:03 UTC
Created attachment 132579 [details] [review]
Test patch, seems to fix the problem for gnome-terminal 2.26.0

This is a patch which seems to fix the problem for gnome-terminal 2.26.0. I'm not a gnome-terminal developer and don't know if the change done by this patch bring another problem (none from what I've noticed, but with a test of few minutes). It removes a call to set the previous terminal size to the screen to be switched to on the gtk_notebook. The call has a comment saying the it is there to maintain for the new screen the same grid of the previous used screen.

I don't know exactly what is the grid in terminal terms, but Christian Persch said to me this bug report was an "entirely unrelated problem" to the one reported on bug 555668, titled "terminal size switching in maximised/fullscreen mode", a problem about resizing the terminal to a specific grid size in maximised/fullscreen mode.
Comment 7 Christian Persch 2009-06-15 12:25:36 UTC
That patch isn't right. What probably happens here is that our internal GtkAdjustment isn't updated correctly, so the last 2 lines fall off.
Comment 8 Mateus César Gröess 2009-07-10 03:25:03 UTC
Bug 588033 contains a patch that fix this problem.
Comment 9 Christian Persch 2009-07-10 10:23:53 UTC

*** This bug has been marked as a duplicate of 588033 ***