https://bugs.kde.org/show_bug.cgi?id=442380

--- Comment #54 from Jesus <bonje...@hotmail.com> ---
(In reply to Brian Kaye from comment #53)
> (In reply to Nicolas Pomarede from comment #52)
> > (In reply to Brian Kaye from comment #48)
> > > I think we need a kde developer to get involved, but they seem to be 
> > > quiet on this bug.
> > 
> > same for me, I have the feeling that since it's a known thing that session
> > restore doesn't work properly with wayland, then no one pay attention to
> > this bug.
> > but it has nothing to do with wayland, it's plain X11 that used to work for
> > years (well, maybe some commits to fix wayland broke the X11 case, can't
> > really say), if I get some spare time I could try to look at the ksmserver
> > commits before plasma 5.21 was released.
> > anyway, for me it's major regression since several months / releases, it's
> > sad no one among KDE dev is noticing this ...
> 
> Surely at some point in the development process someone on the development
> team has a test program to verify the contents of .config/session and
> .config/ksmserverrc. Such a program would help to determine whether its is a
> session save or session restore problem.

Surely  it's a session save because I made a copy of the config/session folder
before deleting it to see if that would solve the problem and the other day I
realized that before December 11, 2021 in the files that starting with dolphin*
the information of the position of each window was saved. On day 11 I updated
and from there that information is no longer saved:

DP-3 Height 3840x2160=680
DP-3 Width 3840x2160=1252
DP-3 XPosition 3840x2160=329
DP-3 YPosition 3840x2160=1237

I think it's a dolphin problem since the other programs like konsole or kwrite
save the positions.

I am a C++ programmer but I have no experience in KDE development, even so I
looked at the dolphin commits around that date since it seems that each program
is responsible for saving the session information through the kconfig library.

One reason could be that in order for a window to save its position, it uses
the kconfig library that has the saveWindowPosition method, in this method
there is:

if (!window || QGuiApplication::platformName() == QLatin1String{"wayland"}) {
        return;
    }

This means that in case the application uses wayland, it does not save the
position information since session restoration is not implemented in wayland.
It may be that due to some change it believes that even if you are using X11 it
believes that it uses Wayland since the other data such as the Tabs are saved.
(I don't know, I'm just guessing)

Looking at the commits from two months before Dec 11 I had no luck, I don't see
any changes that could cause this, I'm stuck.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to