Bug 499256

Summary: Resize issues when a placement policy/rules sets a non-maximisable window to maximised
Product: [Plasma] kwin Reporter: Alberto Salvia Novella <es20490446e>
Component: wayland-genericAssignee: KWin default assignee <kwin-bugs-null>
Status: CONFIRMED ---    
Severity: normal CC: es20490446e, john.kizer, kde, nate, nicolas.fella
Priority: LO Keywords: wayland-only
Version First Reported In: 6.2.5   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Screenshot
stderr.txt
Record.mkv

Description Alberto Salvia Novella 2025-01-28 21:44:37 UTC
SYSTEM
- Zenned (Arch Linux customized)
- plasma-desktop 6.2.5-1
- qt6-base 6.8.1-1
- mate-calc 1.28.0-2 (https://archlinux.org/packages/extra/x86_64/mate-calc/)

STEPS
1. Log into plasma using the Wayland session.
2. Launch mate-calc.

RESULT
- mate-calc is unusable.
- The window lacks decorations. No borders and such.
- If you move the window around, the animation is very choppy.
Comment 1 Nicolas Fella 2025-01-28 22:29:40 UTC
Created attachment 177780 [details]
Screenshot

Seems fine here
Comment 2 Alberto Salvia Novella 2025-01-28 22:31:54 UTC
System?
Comment 3 Vlad Zahorodnii 2025-01-29 13:44:12 UTC
Can you run mate-calc with WAYLAND_DEBUG=1 environment variable and post the output here? Please reset the bug report status back to REPORTED after providing the requested information.
Comment 4 Alberto Salvia Novella 2025-01-29 17:16:10 UTC
Created attachment 177793 [details]
stderr.txt
Comment 5 Vlad Zahorodnii 2025-01-29 17:22:07 UTC
Okay, mate calc appears to create a decoration. Can you share a screenshot to give a glimpse of how mate-calc is broken?
Comment 6 Alberto Salvia Novella 2025-01-29 22:29:08 UTC
Created attachment 177802 [details]
Record.mkv
Comment 7 Vlad Zahorodnii 2025-01-30 10:41:51 UTC
Hmm I cannot reproduce the issue. If you move the window by using Meta+LMB, is there any difference?
Comment 8 John Kizer 2025-02-05 20:12:47 UTC
Updating status pending a response to Vlad's last comment
Comment 9 Alberto Salvia Novella 2025-02-06 01:11:07 UTC
No difference.
Comment 10 Alberto Salvia Novella 2025-12-16 11:21:57 UTC
This affects any window that is non-resizable.

I see the same problem with displaycal dialogs.
Comment 11 Alberto Salvia Novella 2025-12-16 11:22:51 UTC
Let me bisect this...
Comment 12 Alberto Salvia Novella 2025-12-16 11:45:23 UTC
I have found the culprit.

On (System Settings -> Window Behavior -> Advanced) set "Window placement" as "Maximized".