GNOME Bugzilla – Bug 563374
Gnome terminal discards lines when maximized
Last modified: 2009-07-10 10:23:53 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.
I can confirm this bug.
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.
Can someone test with vte 0.19.3 please?
Reproducible using g-t with vte trunk.
-> vte .
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.
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.
Bug 588033 contains a patch that fix this problem.
*** This bug has been marked as a duplicate of 588033 ***