! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
xfce4-terminal unable to create window with 1 line height
Status:
RESOLVED: FIXED
Product:
Xfce4-terminal
Component:
General

Comments

Description Jeffery Small 2020-02-13 20:06:39 CET
Xubuntu 19.10
xfce4-terminal: 0.8.8-1

I can create a 2-line high xfce4-terminal window, but am unable to create one that is only 1-line high.  An attempt to do so creates a window somewhere between 2 and 3 lines high.  Here are some examples where I create various windows and then query them using Xwininfo.

% xfce4-terminal --geometry 80x3 &
% Xwininfo
    Width: 974
    Height: 71

% xfce4-terminal --geometry 80x2 &
% Xwininfo
    Width: 974
    Height: 48

% xfce4-terminal --geometry 80x1 &
% Xwininfo
    Width: 974
    Height: 69

This appears to be a bug.

Note that I am able to successfully create a one line xterm window using:  xterm -geometry 80x1 &
Comment 1 Igor editbugs 2020-02-16 01:12:37 CET
Hi Jeffery, thanks for the report!

The limitation of 2 rows minimum comes from vte (see https://gitlab.gnome.org/GNOME/vte/blob/master/src/vtegtk.cc#L4120), so there's nothing xfce4-terminal could do here.

The windows being between 2 and 3 rows high seems like a bug, indeed.
However, the same issue happens with gnome-terminal, so I'm thinking it could be related to vte as well. I've submitted a bug report in their tracker: https://gitlab.gnome.org/GNOME/vte/issues/215
Comment 2 Jeffery Small 2020-02-16 21:17:18 CET
Igor, on the other bug report thread you started, Egmont Koblinger commented that the window height issue might have to do with other window elements and not the geometry specification.  I tested this by creating the windows with the xfce4-terminal scrollbar suppressed (--scrollbar)  and that indeed was the element throwing off the geometry for the windows.  Now when I try to create a windows of height 1, 2 and 3, I get overall window heights, reported by Xwininfo, of 48, 48 and 71.  So there is still a lower bound of a geometry height of 2, but 1 or 2 now create the same sized 2-line height.

Egmont seems to think that the limitation is still being imposed by some gnome/xfce4 component.  Do you have any further idea?  Could the window manager be responsible?  My knowledge of the inner-working of these components is non-existent.  I can only do black-box testing from the outside!
Comment 3 Git Bot editbugs 2020-02-20 16:26:48 CET
Igor referenced this bugreport in commit a1362b24fb9a283049911f2512e98f5be91deb33

Allow to create window with 1 line height

https://git.xfce.org/apps/xfce4-terminal/commit?id=a1362b24fb9a283049911f2512e98f5be91deb33
Comment 4 Igor editbugs 2020-02-20 16:28:59 CET
Hi Jeffery, I apologize for the misleading comments that I made.
The problem was indeed in xfce4-terminal - its window hints were set to have a minimum of 2 rows. I've changed that to 1 row; but also have to disable the scrollbar (--hide-scrollbar) in order to create a 1 line-height window.
Thanks!
Comment 5 Jeffery Small 2020-02-20 17:19:01 CET
Great!  Thanks.

Bug #16447

Reported by:
Jeffery Small
Reported on: 2020-02-13
Last modified on: 2020-02-20

People

CC List:
0 users

Version

Attachments

Additional information