Bug 467518

Summary: KWrite doesn't respect initial window size setting set in System Settings
Product: [Applications] kate Reporter: Łukasz Konieczny <ftefrjbhfvasf32>
Component: kwriteAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: normal CC: p.r.worrall
Priority: NOR    
Version First Reported In: 22.12.3   
Target Milestone: ---   
Platform: Kubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Łukasz Konieczny 2023-03-18 10:47:57 UTC
SUMMARY
KWrite doesn't respect initial window size setting set in System Settings, that means when I set, that KWrite should appear after launching in such way that it has for example size of 400 px x 500 px, when I resize manually KWrite window, close KWrite and then launch it, it doesn't have size of 400 px x 500 px.


STEPS TO REPRODUCE
1. Set initial size of KWrite window in System Settings or by clicking KWrite's icon in top-left corner of the window, set even rejecting window geometry demanding to "yes".
2. Launch KWrite. Resize its window manually. Close KWrite.
3. Launch KWrite. Observe, that KWrite's window doesn't have size of initial size set.

OBSERVED RESULT
KWrite doesn't respect window rules settings.

EXPECTED RESULT
KWrite fully respects window rules settings.

SOFTWARE/OS VERSIONS
Operating System: Kubuntu 22.10
KDE Plasma Version: 5.27.3
KDE Frameworks Version: 5.104.0
Qt Version: 5.15.6
Kernel Version: 5.19.0-35-generic (64-bit)
Graphics Platform: X11
Processors: 8 × 11th Gen Intel® Core™ i5-1135G7 @ 2.40GHz
Memory: 31.2 GiB of RAM
Graphics Processor: Mesa Intel® Xe Graphics
Manufacturer: System76
Product Name: Darter Pro
System Version: darp7

ADDITIONAL INFORMATION
Kubuntu Backports PPA enabled.
Comment 1 Paul Worrall 2023-03-18 15:32:11 UTC
Quoting from the message that appears at the top of the settings dialog:

Some applications set their own geometry after starting, overriding your initial settings for size and position. To enforce these settings, also force the property "Ignore requested geometry" to "Yes".

So, you need to add the property "Ignore requested geometry" and set it to "Force"