Bug 479372

Summary: Native window border renders far past boundaries of GTK 3/4 window border when noborderrule=2.
Product: [Plasma] kwin Reporter: Roke Julian Lockhart Beedell <4wy78uwh>
Component: decorationsAssignee: KWin default assignee <kwin-bugs-null>
Status: REPORTED ---    
Severity: normal CC: grahamperrin, isma.af
Priority: NOR Flags: 4wy78uwh: performance-
4wy78uwh: Wayland-
4wy78uwh: X11+
4wy78uwh: Intel-
4wy78uwh: Mesa+
4wy78uwh: nouveau-
4wy78uwh: NVIDIA-
Version: 5.27.10   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
URL: https://bugs.kde.org/show_bug.cgi?id=455195#c7
See Also: https://bugs.kde.org/show_bug.cgi?id=470535
Latest Commit: Version Fixed In:
Bug Depends on:    
Bug Blocks: 455195    
Attachments: https://flathub.org/apps/com.quexten.Goldwarden (id=455195#c7)
https://flathub.org/apps/com.protonvpn.www

Description Roke Julian Lockhart Beedell 2024-01-03 20:48:54 UTC
Created attachment 164656 [details]
https://flathub.org/apps/com.quexten.Goldwarden (id=455195#c7)

SUMMARY

	The native window border renders far past boundaries of GTK 3/4 window border when noborderrule is set to 2 (Force Always).

STEPS TO REPRODUCE

	1. Create a KWin Rule.
	2. Set "No titlebar and frame" to "On" + "Force" (noborderrule=2)
	3. 

OBSERVED RESULT

	The native window border renders far past boundaries of GTK 3/4 window border.

EXPECTED RESULT

	The native window border should render around the GTK window border as it used to (or better yet, replace it, but that's infeasible and an FR anyway).

SOFTWARE/OS VERSIONS

	Operating System: cpe:/o:opensuse:tumbleweed:20231226
	KDE Plasma Version: 5.27.10
	KDE Frameworks Version: 5.113.0
	Qt Version: 5.15.11
	Kernel Version: 6.6.7-1-default (64-bit)
	Graphics Platform: X11
	Processors: 12 × AMD Ryzen 5 7600X 6-Core Processor
	Memory: 30.5 GiB of RAM
	Graphics Processor: AMD Radeon RX 5700
	Manufacturer: ASRock
	Product Name: X670E Taichi

ADDITIONAL INFORMATION

	See the https://bugs.kde.org/page.cgi?id=fields.html#see_also of this bug.
Comment 1 Roke Julian Lockhart Beedell 2024-01-03 20:52:36 UTC
(In reply to `{third: "Beedell", first: "Roke"}`{.JSON5} from comment #0)
> Created attachment 164656 [details]
> Depiction of the problem. (id=455195#c7)
> 
> SUMMARY
> 
> 	The native window border renders far past boundaries of GTK 3/4 window
> border when noborderrule is set to 2 (Force Always).
> 
> STEPS TO REPRODUCE
> 
> 	1. Create a KWin Rule.
> 	2. Set "No titlebar and frame" to "On" + "Force" (noborderrule=2)
> 	3. 
> 
> OBSERVED RESULT
> 
> 	The native window border renders far past boundaries of GTK 3/4 window
> border.
> 
> EXPECTED RESULT
> 
> 	The native window border should render around the GTK window border as it
> used to (or better yet, replace it, but that's infeasible and an FR anyway).
> 

Note that this used to not be an issue, recently. It was a regression introduced approximately 1 year previous.