Bug 380255

Summary: K3b does not remember its window size/position under Wayland
Product: [Applications] k3b Reporter: Patrick Silva <bugseforuns>
Component: GUI/UsabilityAssignee: k3b developers <k3b>
Status: RESOLVED FIXED    
Severity: normal CC: mgraesslin, michalm, trueg, zhaixiang
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: screenshot

Description Patrick Silva 2017-05-27 18:08:34 UTC
K3b window opens always restored and on right side of screen under Wayland, it does not matter if I resize manually or maximize the window before exit.
Comment 1 Leslie Zhai 2017-06-06 03:21:28 UTC
Hi Dr. Chapatin,

Sorry for my late response, I am doing my work assignment about L4 recently http://os.inf.tu-dresden.de/pipermail/l4-hackers/2017/ so I have no time for k3b, sorry!

For wayland, you mean plasma wayland session or weston? could you attach some screenshot for me? shortcut for weston http://www.chaosreigns.com/wayland/weston/

Regards,
Leslie Zhai
Comment 2 Patrick Silva 2017-06-06 22:10:10 UTC
Created attachment 105954 [details]
screenshot

Hi Leslie
I meant plasma wayland session.
Here is the screenshot.
Comment 3 Leslie Zhai 2017-06-07 02:01:34 UTC
Hi Dr. Chapatin,

Thanks for your plasma wayland session test :)

> I meant plasma wayland session.
> Here is the screenshot.

I will try to find the root cause in Thursday this week!

Regards,
Leslie Zhai
Comment 4 Leslie Zhai 2017-06-07 04:20:46 UTC
Hi Martin,

> Thanks for your plasma wayland session test :)
> 
> > I meant plasma wayland session.
> > Here is the screenshot.
> 
> I will try to find the root cause in Thursday this week!

k3b -platform wayland is able to work correctly under weston https://pbs.twimg.com/media/DBrzSqxU0AAz2ID.jpg it is able to position KXmlGuiWindow in the center of screen https://pbs.twimg.com/media/DBrzT-gVwAAXeUg.jpg

But I am not familiar with kwin_wayland, even I played with wayland https://lists.freedesktop.org/archives/wayland-devel/2015-April/021245.html and weston https://lists.freedesktop.org/archives/wayland-devel/2015-April/021199.html several years ago, I am still a newbie in some fields :) so Martin please help me to find out the root cause, thanks a lot!

Regards,
Leslie Zhai
Comment 5 Martin Flöser 2017-06-14 20:45:45 UTC
That it works on Weston is pure chance. The window placing algorithm is just not good enough there.

On Wayland it is not possible for applications to position themselves. Hints like splash screen also do not exist. Currently there is no solution for these problems.
Comment 6 Patrick Silva 2017-06-14 21:21:17 UTC
Splash screen appears on top left side here.
The same happens with qbittorrent splash screen.
Comment 7 Leslie Zhai 2017-06-15 04:25:20 UTC
Dear Martin,

Thanks for your kind response!

> That it works on Weston is pure chance. The window placing algorithm is just
> not good enough there.
> 
> On Wayland it is not possible for applications to position themselves. 

I am not familiar with set_position https://cgit.freedesktop.org/wayland/wayland/tree/protocol/wayland.xml#n2649

PS: why you changed your family name?

Regards,
Leslie Zhai
Comment 8 Patrick Silva 2018-10-15 15:27:42 UTC
Currently the window size is remembered when the window is closed while unmaximized.
If the window is closed while maximized, the window occupies the whole screen the next time the K3b starts but the button in the window decoration indicates that the window is not maximized.
Position is still not remembered.

Operating System: Arch Linux 
KDE Plasma Version: 5.14.0
Qt Version: 5.11.2
KDE Frameworks Version: 5.51.0
Kernel Version: 4.18.12-arch1-1-ARCH
Comment 9 Patrick Silva 2022-06-03 14:01:53 UTC
Currently the window size is remembered. The window position will be remembered when bug 15329 is fixed.

Operating System: KDE neon Unstable Edition
KDE Plasma Version: 5.25.80
KDE Frameworks Version: 5.95.0
Qt Version: 5.15.4
Graphics Platform: Wayland