Created attachment 135061 [details] Screenshot SUMMARY When a gtk4 app is maximized, there is some space left all around the window. STEPS TO REPRODUCE 1. Start gtk4-demo 2. maximize SOFTWARE/OS VERSIONS KDE Frameworks Version: 5.78 Qt Version: 5.15.2
A report on GTK bug tracker suggests this is a theming issue not a GTK issue. For more info see: https://gitlab.gnome.org/GNOME/gtk/-/issues/3608
Looks like its shadow is being included in the window size calculation. It should probably be removed for maximized windows. Not sure this is a theme issue or a GTK issue.
Are you using X11 or Wayland? Works fine for me with Nautilus on X11, both with Adwaita and Breeze
Note that this bug is about the GTK4 versions of those apps.
I can confirm this with gtk4-demo on X11 and Breeze. With adwaita it works fine
A possibly relevant merge request was started @ https://invent.kde.org/plasma/breeze-gtk/-/merge_requests/15
Git commit 96c2f79c272a25f759b2530a9cfa377f276952e0 by Jan Blackquill. Committed on 28/01/2021 at 21:12. Pushed by cblack into branch 'master'. gtk4: remove margin on windows This isn't /r/unixporn and we want our windows to touch the edges of the screen when maximized. GTK4 is nice enough to automatically adjust the size of surfaces and whatnot when we set a box shadow, so we don't have to use a margin hack in order to make room for it in the first place. M +5 -2 src/gtk4/widgets/_window_decorations.scss https://invent.kde.org/plasma/breeze-gtk/commit/96c2f79c272a25f759b2530a9cfa377f276952e0
Git commit 15bc5576f5e1a9ee01d1a79396984b539eb8ae87 by Jan Blackquill. Committed on 28/01/2021 at 21:21. Pushed by cblack into branch 'Plasma/5.21'. gtk4: remove margin on windows This isn't /r/unixporn and we want our windows to touch the edges of the screen when maximized. GTK4 is nice enough to automatically adjust the size of surfaces and whatnot when we set a box shadow, so we don't have to use a margin hack in order to make room for it in the first place. FIXED-IN: 5.21 M +5 -2 src/gtk4/widgets/_window_decorations.scss https://invent.kde.org/plasma/breeze-gtk/commit/15bc5576f5e1a9ee01d1a79396984b539eb8ae87