Bug 499388

Summary: A small line briefly appears under the titlebar when maximizing a window, if specific combinations of titlebar button sizes and fractional scaling percentages have been set
Product: [Plasma] kwin Reporter: Luis <stereomato>
Component: decorationsAssignee: KWin default assignee <kwin-bugs-null>
Status: REPORTED ---    
Severity: minor CC: john.kizer, kwin-bugs-null, nate, uhhadd
Priority: LO    
Version First Reported In: 6.2.5   
Target Milestone: ---   
Platform: NixOS   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Video showing the issue
Update

Description Luis 2025-02-01 16:42:57 UTC
Created attachment 177888 [details]
Video showing the issue

SUMMARY
Scaling: 125% + Font Size 10.5/8.5 + Tiny/Medium sized titlebar buttons = fine, any other titlebar button size = small transparent border when maximized for a split second, even with the default font size, similar behavior with the Very Large button size. Similar behavior even with integer font sizes.

STEPS TO REPRODUCE
1. Set font sizes and scaling as described on summary
2. Maximize and restore window
3. Witness the issue

OBSERVED RESULT
Border there for a split second.

EXPECTED RESULT
No border.

SOFTWARE/OS VERSIONS
Operating System: NixOS 25.05
KDE Plasma Version: 6.2.5
KDE Frameworks Version: 6.10.0
Qt Version: 6.8.1
Kernel Version: 6.13.0 (64-bit)
Graphics Platform: Wayland
Processors: 16 × 12th Gen Intel® Core™ i5-12500H
Memory: 23.2 GiB of RAM
Graphics Processor: Mesa Intel® Iris® Xe Graphics
Manufacturer: ASUSTeK COMPUTER INC.
Product Name: Vivobook_ASUSLaptop X1605ZA_X1605ZA
System Version: 1.0
Comment 1 Luis 2025-02-01 17:52:32 UTC
Created attachment 177892 [details]
Update

Actually, it's a transparent border.
Comment 2 John Kizer 2025-02-06 05:37:30 UTC
Hi - I'm afraid my eyesight isn't good enough to see what is being described in that video.

For others who may be able to see what you are, do you see the issue at any scaling settings other than 125%, or at any font sizes other than 8 or 10?

Thanks,
Comment 3 Luis 2025-02-07 01:41:12 UTC
(In reply to John Kizer from comment #2)
> Hi - I'm afraid my eyesight isn't good enough to see what is being described
> in that video.

You can see a small border appear and hide, it's like a border between the titlebar and the window contents. But it always is there actually, as shown in my second attachment.

> For others who may be able to see what you are, do you see the issue at any
> scaling settings other than 125%, or at any font sizes other than 8 or 10?

Seems to happen on 125%, 175%, not on 100% or 150%. And yes, seen it happen with sizes 12, 14 just now (window title font size).

> Thanks,
Comment 4 Luis 2025-02-07 01:47:34 UTC
Something interesting I just found out: Moving the mouse around the transparent border thingy makes it go away.