Created attachment 133903 [details] Test script SUMMARY Libhandy is a widget library for GNOME apps. https://gnome.pages.gitlab.gnome.org/libhandy/ It offers a preference window widget that can have an optional search button in its header bar. If you turn off that search button feature, Breeze freaks out and does not render the header bar at all. This is rather unfortunate, since the user may not be able to access all pages of preferences. Nor be able to easily close the window. STEPS TO REPRODUCE 1. Download the attached test script handy_prefs.py 2. Run it like `python3 handy_prefs.py` OBSERVED RESULT Window has no header bar at all. In the console, you can see errors like: Negative content height -9 (allocation 1, extents 5x5) while allocating gadget (node button, owner GtkButton) (The blank main content is expected, as my test script doesn't add anything there.) EXPECTED RESULT The header bar is visible. SOFTWARE/OS VERSIONS Linux/KDE Plasma: Ubuntu 20.10 KDE Plasma Version: 5.19.5 KDE Frameworks Version: 5.74.0 Qt Version: 5.14.2
A possibly relevant merge request was started @ https://invent.kde.org/plasma/breeze-gtk/-/merge_requests/17
Git commit 9bd3044d3149bf50b30587f477b19a7e90c12896 by Jan Blackquill. Committed on 04/03/2021 at 22:43. Pushed by ngraham into branch 'master'. gtk3, gtk4: unscrew libhandy's height Looks like libhandy requires the style to set a minimum height for titlebars; themes that fail to do so will get broken apps. I picked 46px because that's what Adwaita uses, and I fear that deviating from that will cause apps to potentially break. M +3 -0 src/gtk3/widgets/_window_decorations.scss M +4 -0 src/gtk4/widgets/_window_decorations.scss https://invent.kde.org/plasma/breeze-gtk/commit/9bd3044d3149bf50b30587f477b19a7e90c12896
Git commit 72b568275a5ef464f133a62db875740a89598b49 by Nate Graham, on behalf of Jan Blackquill. Committed on 05/03/2021 at 15:58. Pushed by ngraham into branch 'Plasma/5.21'. gtk3, gtk4: unscrew libhandy's height Looks like libhandy requires the style to set a minimum height for titlebars; themes that fail to do so will get broken apps. I picked 46px because that's what Adwaita uses, and I fear that deviating from that will cause apps to potentially break. (cherry picked from commit 9bd3044d3149bf50b30587f477b19a7e90c12896) M +3 -0 src/gtk3/widgets/_window_decorations.scss M +4 -0 src/gtk4/widgets/_window_decorations.scss https://invent.kde.org/plasma/breeze-gtk/commit/72b568275a5ef464f133a62db875740a89598b49