Bug 489623 - Maximizing window while panel is floating causes screen glitches
Summary: Maximizing window while panel is floating causes screen glitches
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: compositing (other bugs)
Version First Reported In: 6.1.1
Platform: Fedora RPMs Linux
: NOR major
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-07-02 15:45 UTC by kde.rrhii
Modified: 2024-07-30 10:01 UTC (History)
2 users (show)

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


Attachments
Screen recording, showing glitches when maximizing a window (2.42 MB, video/mp4)
2024-07-08 17:37 UTC, CUI Hao
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kde.rrhii 2024-07-02 15:45:34 UTC
SUMMARY
Maximizing the window while the panel is floating causes weird glitches all over the screen.
It looks like the maximized window doesn't render because of the floating panel, but Plasma thinks it's rendering, which doesn't clear the buffer and results in such weird artifacts from other windows. This issue appears for every maximized window (X11 and XWayland), and interestingly, a full-screen window works fine. Snapping the window to the side (half-width / full-height) also works.
This is annoying because it also affects games that run as a borderless window.
[Look for screen recording in ADDITIONAL INFORMATION]

STEPS TO REPRODUCE
1. Create bottom panel with "Floating=enabled" and "Visibility=always visible"
2. Arrange the windows so that they do not cover the panel and panel is floating
3. Maximize window

OBSERVED RESULT
Whole screen is messed up

EXPECTED RESULT
Window is properly maximized

SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 40
KDE Plasma Version: 6.1.1
KDE Frameworks Version: 6.3.0
Qt Version: 6.7.1
Kernel Version: 6.9.6-200.fc40.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 5800X 8-Core Processor
Memory: 31.3 GiB of RAM
Graphics Processor: AMD Radeon RX 6900 XT
Manufacturer: Micro-Star International Co., Ltd.
Product Name: MS-7C37
System Version: 2.0

ADDITIONAL INFORMATION
It is difficult to describe this error in more detail, so I am providing a link to the screen recording.
https://drive.proton.me/urls/7XD720JMKC#hY30VQoeH3An
Comment 1 CUI Hao 2024-07-08 17:37:05 UTC
Created attachment 171483 [details]
Screen recording, showing glitches when maximizing a window

I also encountered the issue on Arch Linux + Plasma 6.1.2 + Wayland. I have two screens. It only happened on the screen with the panel.

And disabling floating panel solves the bug.
Comment 2 Marco Martin 2024-07-30 10:01:54 UTC
floatimg panels work different now (the actual window never moves or resizes anymore), avoiding this problem