Bug 435487 - GTK applications with giant borders around the window
Summary: GTK applications with giant borders around the window
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: 5.21.4
Platform: Other Other
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-04-07 22:25 UTC by Rind
Modified: 2023-09-06 10:38 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rind 2021-04-07 22:25:37 UTC
SUMMARY
I have been having this problem seemingly randomly, sometimes it happens and sometimes it doesn't, and I finally got a way to reproduce it. 

It has also been reported in the reddit community. However the author apparently didn't create an issue here.
https://www.reddit.com/r/kde/comments/mb5tdi/what_are_these_borders_they_only_appear_on_gtk/

STEPS TO REPRODUCE:
1. Disable the title bar in firefox (hamburger menu -> customization -> title bar checkbox, at the bottom of the window)
2. Create a kwin rule for the firefox window and under Appearance and fixes select "No title bar and frame". Set the Force option and check "No".
3. Open firefox

Although I tested in firefox, this worked in every GTK application I have installed.

OBSERVED RESULT
https://i.imgur.com/JHcUgrx.png

SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.21.4
KDE Frameworks Version: 5.80.0
Qt Version: 5.15.2
Kernel Version: 5.11.11-arch1-1
OS Type: 64-bit
Graphics Platform: X11redd
Comment 1 David Edmundson 2023-09-06 10:38:40 UTC
This bug was reported against an outdated version of KWin. We have made many changes since the. 
If the issue persists in newer versions can you reopen the bug report updating the version number.