Bug 458963 - Does not remember custom window sizing
Summary: Does not remember custom window sizing
Status: RESOLVED FIXED
Alias: None
Product: frameworks-kconfig
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 5.97.0
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: Matthew Dawson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-09-10 13:54 UTC by D3XT3R
Modified: 2022-11-14 09:07 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Workspace in the Wayland session (456.13 KB, image/jpeg)
2022-09-12 21:04 UTC, D3XT3R
Details

Note You need to log in before you can comment on or make changes to this bug.
Description D3XT3R 2022-09-10 13:54:38 UTC
I particularly think Kate's default window size is small, I resize it, but the application doesn't remember the custom size.
Just restart the system and the window reverts to its default size.
Kwrite has the same behavior.
Comment 1 Nate Graham 2022-09-12 18:28:50 UTC
Seems related to https://invent.kde.org/frameworks/kconfig/-/merge_requests/129

1. Are you on X11 or Wayland? If you're on X11, does it work on Wayland?
2. Do you have a multimonitor setup?
Comment 2 D3XT3R 2022-09-12 19:27:35 UTC
(In reply to Nate Graham from comment #1)
> Seems related to
> https://invent.kde.org/frameworks/kconfig/-/merge_requests/129
> 
> 1. Are you on X11 or Wayland? If you're on X11, does it work on Wayland?
> 2. Do you have a multimonitor setup?

1. I'm on X11. How do I change to Wayland, for me there is no option to switch on the lock screen!
2. I have only one monitor.
Comment 3 Nate Graham 2022-09-12 19:29:27 UTC
The option to log into a Wayland session is on the login screen, not the lock screen.

if you don't see "Plasma Wayland" in the session chooser menu on the login screen, it's likely that you're missing a package, maybe something called "plasma-wayland-session" or something. Hunt around in your package manager.
Comment 4 D3XT3R 2022-09-12 21:04:55 UTC
Created attachment 152009 [details]
Workspace in the Wayland session
Comment 5 D3XT3R 2022-09-12 21:05:45 UTC
(In reply to Nate Graham from comment #1)
> Seems related to
> https://invent.kde.org/frameworks/kconfig/-/merge_requests/129
> 
> 1. Are you on X11 or Wayland? If you're on X11, does it work on Wayland?
> 2. Do you have a multimonitor setup?

Nate, I was unable to test using Wayland.

The first time I tried to start a Wayland session, my screen froze showing the desktop.
On second and third attempts, desktop and taskbar did not work mouse click, part of image files did not display thumbnail, application icons in taskbar overlapped each other, sound icon in tray of the system disappeared, the desktop became white.
Application windows were being minimized to the top of the screen.

https://imgur.com/wYxwpiG

A real horror movie |o|

I was unable to restart plasmashell, it returned the following message:

"Quitting application plasmashell failed. Error reported was:\n\n org.freedesktop.DBus.Error.NoReply : Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken."
Comment 6 Nate Graham 2022-09-12 23:43:02 UTC
Ok, let's forget about Wayland for now.

Cannot reproduce on X11. What version of KDE frameworks do you have?
Comment 7 D3XT3R 2022-09-12 23:47:27 UTC
(In reply to Nate Graham from comment #6)
> Ok, let's forget about Wayland for now.
> 
> Cannot reproduce on X11. What version of KDE frameworks do you have?

Operating System: KDE neon 5.25 User Edition
KDE Plasma Version: 5.25.5
KDE Frameworks Version: 5.97.0
Qt Version: 5.15.5
Kernel Version: 5.11.0-37-generic (64-bit)
Graphics Platform: X11
Processors: 2 × Intel® Core™2 Duo CPU E7500 @ 2.93GHz
Memory: 3.8 GiB of RAM
Graphics Processor: NVCE
Manufacturer: MICRO-STAR INTERNATIONAL CO.,LTD
Product Name: MS-7529
System Version: 1.0
Comment 8 Nate Graham 2022-09-15 15:57:21 UTC
Thanks, should be fixed by https://invent.kde.org/frameworks/kconfig/-/merge_requests/129.
Comment 9 Nate Graham 2022-09-16 14:00:07 UTC
Git commit 21e02655a78b5d241c35fd934f7665564420327c by Nate Graham, on behalf of Richard Bízik.
Committed on 16/09/2022 at 13:59.
Pushed by ngraham into branch 'master'.

Fix size and position restoration on multimonitor setups

Configuration was not being picked up due to window being
placed on a left most screen. Added configuration of latest screen on
which window was placed which is used to load a propper
configuration for that screen.
Related: bug 427875

M  +72   -34   src/gui/kwindowconfig.cpp
M  +16   -1    src/gui/kwindowconfig.h

https://invent.kde.org/frameworks/kconfig/commit/21e02655a78b5d241c35fd934f7665564420327c
Comment 10 Davy Bartoloni 2022-11-14 09:07:55 UTC
as spotted by Jean Baptiste :  https://invent.kde.org/frameworks/kconfig/-/commit/21e02655a78b5d241c35fd934f7665564420327c#note_561437 theer is a issue with Windows OS.