Bug 468125

Summary: Maximized properties not working properly on wayland
Product: [Plasma] kwin Reporter: Omelet Lin <2qbingxuan>
Component: rulesAssignee: KWin default assignee <kwin-bugs-null>
Status: REPORTED ---    
Severity: normal CC: 2qbingxuan, as.luizh, isma.af, nate
Priority: NOR Keywords: wayland-only
Version First Reported In: 5.27.3   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Omelet Lin 2023-04-03 17:10:08 UTC
SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
0. Use wayland session to login
1. Click left-top of a window (or press Alt+F3)
2. Select "More Actions" -> "Configure Special Application Settings"
3. Add the property "Maximized horizontally" and "Maximized vertically", select "Apply initially" and yes, apply and save.

OBSERVED RESULT
When the app is re-launched, the maximized rule is not applied to the window.

EXPECTED RESULT
When the app is re-launched, the window should maximize. This is the behavior in X11 version window rules.


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version:  5.27.3
KDE Frameworks Version: 5.104.0
Qt Version: 5.15.8
Kernel Version: 6.2.9-arch1-1 (64 bit)
Graphics Platform: Wayland

ADDITIONAL INFORMATION
Comment 1 Luiz 2024-03-31 17:18:30 UTC
I'm also experiencing a similar result. 

What works: Force, Force Temporarily.
What doesn't work: Apply Initially, Apply Now, Remember

One curious thing I've noticed is that, if I set "Apply Initially" to position for <1190,642> (the bottom right corner for this particular window), it is instead placed at <959,539>, however, if I give no position or leave it at "No Effect", it is instead placed in the exact center of the screen, at <595,337>, so the "Apply Initially" is having some effect, just not the correct one.

Operating System: Fedora Linux 40
KDE Plasma Version: 6.0.2
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2
Kernel Version: 6.8.2-300.fc40.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 2700X Eight-Core Processor
Memory: 15.6 GiB of RAM
Graphics Processor: NVIDIA GeForce RTX 4060 Ti/PCIe/SSE2
Manufacturer: Micro-Star International Co., Ltd
Product Name: MS-7B07
System Version: 1.0