Bug 502329 - Opening NeoChat after closing restores to full size but not "maximized" state
Summary: Opening NeoChat after closing restores to full size but not "maximized" state
Status: RESOLVED FIXED
Alias: None
Product: NeoChat
Classification: Applications
Component: General (other bugs)
Version First Reported In: 24.12.3
Platform: Fedora RPMs Linux
: NOR minor
Target Milestone: ---
Assignee: Tobias Fella
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-04-02 16:16 UTC by nilskemail+kde
Modified: 2025-04-30 14:22 UTC (History)
4 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description nilskemail+kde 2025-04-02 16:16:45 UTC
SUMMARY
NeoChat remembers the window state (size) when closing and reopening it. However, the maximized state is not correctly restored (even though the size is)

STEPS TO REPRODUCE
1. Open NeoChat
2. Maximize the window (note that the top corners are no longer rounded, and the icon changes from an up-chevron to a diamond)
3. Close NeoChat
4. Open it again

OBSERVED RESULT
Neochat restores to the correct size but it not treated as maximized, therefore the top corners are rounded again and the icon in the window bar still offers to maximize it (up-chevron as icon).

EXPECTED RESULT
The top corners should not be rounded and the icon should be a diamond.

SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 41
KDE Plasma Version: 6.3.3
KDE Frameworks Version: 6.12.0
Qt Version: 6.8.2
Kernel Version: 6.13.9-200.fc41.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 7840U w/ Radeon  780M Graphics
Memory: 30.6 GiB of RAM
Graphics Processor: AMD Radeon 780M
Comment 1 John Kizer 2025-04-11 02:57:02 UTC
Hi - on my Fedora KDE 41 device, following the steps listed there does result in NeoChat opening up in a maximized state (no borders, window control offers to "Restore").

Just to double-check, do you have any KWin Window Rules in effect for NeoChat?

And in case it might be relevant, what's your Window placement setting, under System Settings > Window Management > Window Behavior > Advanced?

Thanks!
Comment 2 nilskemail+kde 2025-04-11 09:45:01 UTC
I have no window rules confirmed and default placement is "centered"
Comment 3 [object Object] 2025-04-15 18:02:58 UTC
I can confirm that I also have this issue.

Operating System: Arch Linux
KDE Plasma Version: 6.3.4
KDE Frameworks Version: 6.12.0
Qt Version: 6.9.0
Kernel Version: 6.14.2-2-cachyos (64-bit)
Graphics Platform: Wayland
NeoChat Version: 24.12.3
Comment 4 Bug Janitor Service 2025-04-20 11:48:12 UTC
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/kconfig/-/merge_requests/367
Comment 5 george fb 2025-04-30 14:22:50 UTC
Git commit 71c35ab2c0d0e2f6b7791617b618c7e65f6e07c6 by George Florea Bănuș.
Committed on 30/04/2025 at 14:22.
Pushed by georgefb into branch 'master'.

kwindowstatesaver: call saveSize when window state changes

For Qt 6.9, we need to bind to the window state changing too.
Related: bug 502978
FIXED-IN: 6.14

M  +1    -0    src/gui/kwindowstatesaver.cpp

https://invent.kde.org/frameworks/kconfig/-/commit/71c35ab2c0d0e2f6b7791617b618c7e65f6e07c6