! 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 !
Size increases on Wayland when menu is used
Status:
RESOLVED: FIXED
Product:
Xfce4-terminal
Component:
General

Comments

Description Egmont Koblinger 2017-10-21 00:02:45 CEST
GNOME Shell with Wayland:

1. Click anywhere on the application menu (the File Edit... at the top of the window).
2. Close it by any means (click elsewhere, press Esc, or actually select/invoke any of the entries).
3. Notice that the window size increases by approximately 5x5 characters.

Happens on GNOME Shell on Wayland; does not happen on GNOME Shell or Unity 7 on X.Org.

Ubuntu Artful, reproducible with their xfce4-terminal 0.8.6 package as well as current git.

Discovered this while playing with
https://bugzilla.gnome.org/show_bug.cgi?id=751064
https://bugs.launchpad.net/ubuntu/+source/gnome-terminal/+bug/1288655
https://bugs.launchpad.net/ubuntu/+source/gnome-terminal/+bug/1706008

Not sure if they are related. I have absolutely no clue what could be going on, and whether it's a bug in xfce4-terminal or elsewhere.
Comment 1 Egmont Koblinger 2017-10-21 00:25:04 CEST
If I open the menu using the F10 key, the window size immediately increases at that point too (and once again later when I close the menu).
Comment 2 Git Bot editbugs 2019-09-16 22:07:32 CEST
Igor referenced this bugreport in commit 71bc9086016062faa90485d27d4fe522609d44d7

Fix size increase when the menu is used on Wayland

https://git.xfce.org/apps/xfce4-terminal/commit?id=71bc9086016062faa90485d27d4fe522609d44d7
Comment 3 Igor editbugs 2019-09-16 22:10:32 CEST
Hi Egmont, (a little late) thanks for the report! I finally got to it.

The terminal still can grow on multiple occasions (when gtk_window_resize() is involved) but that's a different issue.
Comment 4 Egmont Koblinger 2019-09-17 08:32:56 CEST
Verified, thanks!
Comment 5 Igor editbugs 2019-09-17 17:58:33 CEST
Egmont, have you been able to resolve the window resizing issues (e.g., when opening/closing a tab, etc.) in gnome-terminal?
Comment 6 Egmont Koblinger 2019-09-17 18:10:46 CEST
Which issue do you mean exactly? We had/have several ones. The unfixed ones occurring to me are:

- spurious back and forth resize events (https://bugzilla.gnome.org/show_bug.cgi?id=731137) which will require heavy changes (different strategy for fullscreen/maximized vs. normal windows),

- fullscreen/maximize back and forth shrinking the window on Wayland (https://gitlab.gnome.org/GNOME/gnome-terminal/issues/129), probably a GTK issue.
Comment 7 Igor editbugs 2019-09-17 18:14:27 CEST
xfce4-terminal window grows in size when opening (or closing) a second tab - i.e. when the tabbar gets shown or hidden. Have you had this issue with gnone-terminal?
Comment 8 Igor editbugs 2019-09-17 18:17:25 CEST
Oh, I forgot to mention - that's on wayland.
Comment 9 Egmont Koblinger 2019-09-17 18:18:12 CEST
Grows exactly as much as needed to accomodate for the tabbar (or its removal), so that the actual terminal area remains the same size? This has always been the intended behavior for gnome-terminal. Or do you mean a larger amount of growing?

If you don't like this, you have two approaches. Either unconditionally show the tabbar (even with 1 tab), or give up on geometry hints and go with continuous resize (since it's pretty unlikely that both the same overall window size, both with and without the tabbar, results in an aligned VTE size).
Comment 10 Egmont Koblinger 2019-09-17 18:20:39 CEST
Ohh, I see. xfce4-terminal indeed grows more than necessary on Wayland. I don't think gnome-terminal ever had this problem, and I'd guess the fix would be similar to the one you just submitted here.
Comment 11 Igor editbugs 2019-09-17 20:49:35 CEST
I've fixed it! The problem was in an incorrect calculation of the new window size which somehow only caused the issue on Wayland and not on X.

Bug #13938

Reported by:
Egmont Koblinger
Reported on: 2017-10-21
Last modified on: 2019-09-17

People

CC List:
0 users

Version

Version:
unspecified

Attachments

Additional information