app window grows with each start due to incorrectly using gtk API (wayland)
@kparal
Submitted by Kamil Páral Link to original bug (#771290)
Description
Description of problem: Since gtk3-3.21.5-1.fc25.x86_64 gitg window grows with each start (on wayland). You can see the same issue with virt-manager here: https://www.youtube.com/watch?v=NO6Wlaoq0x8 (the same issue applies to gitg)
This has been reported against gtk: https://bugzilla.gnome.org/show_bug.cgi?id=771112 and determined as an application bug: https://bugzilla.gnome.org/show_bug.cgi?id=771112#c7
Quoting how to fix this:
https://wiki.gnome.org/HowDoI/SaveWindowState
Querying the window size and then setting it with GtkWindow API is perfectly fine.
Querying the window size with GtkWidget API and then setting it with GtkWindow API, *or* querying the window size with GtkWindow API and then setting it with GtkWidget API, is *not* okay, and only worked up until now with server-side decorations only on X11.
Version-Release number of selected component (if applicable): gitg-3.21.91-1.fc25.x86_64 gtk3-3.21.5-1.fc25.x86_64
How reproducible: always
Steps to Reproduce:
- start and close gitg repeatedly, it will grow each time
Version: 3.21.x