STEPS TO REPRODUCE 1. open Elisa on Wayland session 2. maximize Elisa 3. restart Elisa OBSERVED RESULT the maximize/restore button in the window decoration indicates that Elisa is not maximized despite it occupies the whole screen EXPECTED RESULT Elisa should remember its maximized state on Wayland SOFTWARE/OS VERSIONS Operating System: KDE neon Unstable Edition KDE Plasma Version: 5.20.80 KDE Frameworks Version: 5.76.0 Qt Version: 5.15.0
Thanks for your report. I now have a working Plasma Wayland setup. I will have a look today.
I can confirm that I can reproduce this. It is also the case when running on Windows platform.
It has this problem on X11 too. It seems to manually remember its size rather than using the appropriate kconfig functions, which handle the maximized case automatically.
*** Bug 487685 has been marked as a duplicate of this bug. ***
A possibly relevant merge request was started @ https://invent.kde.org/multimedia/elisa/-/merge_requests/600
Git commit 4216ed903fd43b8de93cb850d30895ca7ac69f8a by Nate Graham. Committed on 06/08/2024 at 20:45. Pushed by ngraham into branch 'master'. Save and restore maximization state Right now Elisa does not save and restore maximization state, and does something annoying instead: it makes the unmaximized window have the width and height of a maximized window! Fix this by tracking maximization state explicitly. It needs to be done in a new onClosing signal handler because by the time the current aboutToQuit() binding executes, the window state has been changed from maximized to windowed internally by Qt. For 24.12, we'll be able to migrate to KConfig.WindowStateSaver, assuming its own maximization state tracking gets fixed. For now, add the feature to the existing implementation. FIXED-IN: 24.08.0 M +20 -5 src/qml/ElisaMainWindow.qml https://invent.kde.org/multimedia/elisa/-/commit/4216ed903fd43b8de93cb850d30895ca7ac69f8a
Git commit ff0669fa806fe0fa0fc2395a067022fabf597288 by Nate Graham. Committed on 06/08/2024 at 21:37. Pushed by ngraham into branch 'release/24.08'. Save and restore maximization state Right now Elisa does not save and restore maximization state, and does something annoying instead: it makes the unmaximized window have the width and height of a maximized window! Fix this by tracking maximization state explicitly. It needs to be done in a new onClosing signal handler because by the time the current aboutToQuit() binding executes, the window state has been changed from maximized to windowed internally by Qt. For 24.12, we'll be able to migrate to KConfig.WindowStateSaver, assuming its own maximization state tracking gets fixed. For now, add the feature to the existing implementation. FIXED-IN: 24.08.0 (cherry picked from commit 4216ed903fd43b8de93cb850d30895ca7ac69f8a) Co-authored-by: Nate Graham <nate@kde.org> M +20 -5 src/qml/ElisaMainWindow.qml https://invent.kde.org/multimedia/elisa/-/commit/ff0669fa806fe0fa0fc2395a067022fabf597288