Bug 458038 - On X11, widgets still inappropriately move after login after panel appears
Summary: On X11, widgets still inappropriately move after login after panel appears
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Desktop Containment (show other bugs)
Version: 5.25.4
Platform: Other Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
: 460672 (view as bug list)
Depends on:
Blocks:
 
Reported: 2022-08-18 16:26 UTC by Damian C
Modified: 2023-02-21 09:28 UTC (History)
9 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.27


Attachments
The yellow line shows the alignment position the widgets should have stayed aligned to (1.17 MB, image/png)
2022-08-18 16:26 UTC, Damian C
Details
Widgets after rebooting using wayland. (1.50 MB, image/png)
2022-10-19 13:26 UTC, Damian C
Details
Example with multiple plasmashell reloading (523.39 KB, video/mp4)
2023-01-03 17:18 UTC, Ismael Asensio
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Damian C 2022-08-18 16:26:45 UTC
Created attachment 151411 [details]
The yellow line shows the alignment position the widgets should have stayed aligned to

SUMMARY
When logging in, right before the task manager panel appears at the bottom, all the widgets shown on the screenshot are loaded first and they appear in their right positions, as set previously before rebooting/relogin.
However right after the bottom task manager panel appears, they become misplaced or misaligned, almost as if they would seem to "jump" out of position.
This is on the third screen/display. All three displays are one next to the other in an horizontal fashion, the widgets are placed in the one to my right side.


STEPS TO REPRODUCE
1. Place widget to their desired positions.
2. Log off and login, or reboot and login.


OBSERVED RESULT
Observe the widgets become misplaced right after the bottom task manager is loaded.

EXPECTED RESULT
The widgets remain in their specified position as they were placed before rebooting.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.25.4
KDE Frameworks Version: 5.97.0
Qt Version: 5.15.5
Kernel Version: 5.19.1-zen1-1-zen (64-bit)
Graphics Platform: X11
Processors: 12 × Intel® Core™ i7-8700K CPU @ 3.70GHz
Memory: 15.5 GiB of RAM
Graphics Processor: NVIDIA GeForce GTX 1070/PCIe/SSE2

ADDITIONAL INFORMATION
See screenshot. The yellow line shows the alignment position the widgets should have stayed aligned to.
Also running 2 instances of conky for 2 information "panels".
The widgets that become misplaced are mainly "System Monitor" widgets, but I also had this issue with an assortment of "Digital Clock" widgets that I had previously placed on that same screen showing the time on different cities, and the constant repositioning after a reboot required to make them useful was too frustrating so I just removed them.
The widget's size is also slightly altered.

Could be related to "425368", though there's very little information on that one.
Comment 1 Nate Graham 2022-08-23 12:42:14 UTC

*** This bug has been marked as a duplicate of bug 413645 ***
Comment 2 Damian C 2022-10-16 20:07:47 UTC
(In reply to Nate Graham from comment #1)
> 
> *** This bug has been marked as a duplicate of bug 413645 ***

Hello,

I've seen that in bug 413645 this has been marked as fixed with 5.26.
I am now running 5.26 and I'm afraid this behavior as described in this bug report persist.
Issuing plasmashell --replace restores the widgets to their intended position (previous to reboot).

Thank you,
Comment 3 Nate Graham 2022-10-18 19:07:48 UTC
*** Bug 460672 has been marked as a duplicate of this bug. ***
Comment 4 Nate Graham 2022-10-19 00:00:43 UTC
We're getting reports that this remains broken but only for X11. Which makes sense for why I can't reproduce it, because I'm on Wayland. And probably the developers who worked on the fix are on Wayland too.

For anyone able to reproduce on X11, can you try the following:

1. Log out of your X11 session
2. Log into a wayland session
3. Arrange widgets how yo want
3. Log out of the wayland session
4. Log into it again

Thanks!
Comment 5 Damian C 2022-10-19 13:26:19 UTC
Created attachment 153030 [details]
Widgets after rebooting using wayland.

Digital clock widgets showing wrong size, but better overall.
Comment 6 Damian C 2022-10-19 13:30:07 UTC
(In reply to Nate Graham from comment #4)
> We're getting reports that this remains broken but only for X11. Which makes
> sense for why I can't reproduce it, because I'm on Wayland. And probably the
> developers who worked on the fix are on Wayland too.
> 
> For anyone able to reproduce on X11, can you try the following:
> 
> 1. Log out of your X11 session
> 2. Log into a wayland session
> 3. Arrange widgets how yo want
> 3. Log out of the wayland session
> 4. Log into it again
> 
> Thanks!

I've done this and it seems to be less messy overall. Almost all widgets retain their proper positioning, except for 2 of the digital clock ones.
This can be observed in the screenshot I've uploaded (comment 5 I think). And the webslice widget is now displaying a dark grey color instead of the contents of the website. (can also be seen on screenshot)

This of course also brings other problems with using wayland, such as the webslice widget issue, Kmail's blank emails on the reading pane, etc. 

But it seems to not misalign most of the widgets as opposed to X11.
Comment 7 Zan 2022-10-19 15:01:28 UTC
(In reply to Nate Graham from comment #4)
> We're getting reports that this remains broken but only for X11. Which makes
> sense for why I can't reproduce it, because I'm on Wayland. And probably the
> developers who worked on the fix are on Wayland too.
> 
> For anyone able to reproduce on X11, can you try the following:
> 
> 1. Log out of your X11 session
> 2. Log into a wayland session
> 3. Arrange widgets how yo want
> 3. Log out of the wayland session
> 4. Log into it again
> 
> Thanks!

Everything seems to be working fine for me on Wayland (all widgets now keep their positions and size)
Thanks!
Comment 8 Nate Graham 2022-10-19 15:35:05 UTC
Awesome. Widget *sizing* is a different thing, I think.

So it seems like the original issue is now fixed on Wayland but still broken on X11.
Comment 9 Nate Graham 2022-10-21 16:47:55 UTC
Can those of you experiencing this on X11 try again with Plasma 5.26.2, or current git master, or with c344410a061862dd4802581a1ac3b9a09758ace0 and f33cd92fbfb765299018bddc2a86ac5326731231 in plasma-workspace applied? Aaron just committed a further fix.
Comment 10 Soren Stoutner 2022-10-21 23:25:36 UTC
*** Bug 460778 has been marked as a duplicate of this bug. ***
Comment 11 Nate Graham 2022-10-24 18:01:00 UTC
(waiting for confirmation that it's still an issue in the X11 session for Plasma 5.26.2, for the people who were experiencing it in 5.26.0)
Comment 12 Zan 2022-10-26 16:13:13 UTC
Plasma 5.26.2 stable, X11 session, Arch/Garuda Linux

Issue is still there on Desktops with Panels/Latte on top of the screen,
on Desktops with Panels on side/bottom or without Panels, all Widgets keep their positions.
Comment 13 Damian C 2022-10-26 17:01:32 UTC
(In reply to Nate Graham from comment #11)
> (waiting for confirmation that it's still an issue in the X11 session for
> Plasma 5.26.2, for the people who were experiencing it in 5.26.0)

I regret to report that this is still happening running 5.26.2, no change in behavior whatsoever.
Comment 14 Damian C 2022-10-26 17:02:34 UTC
(In reply to Damian C from comment #13)
> (In reply to Nate Graham from comment #11)
> > (waiting for confirmation that it's still an issue in the X11 session for
> > Plasma 5.26.2, for the people who were experiencing it in 5.26.0)
> 
> I regret to report that this is still happening running 5.26.2, no change in
> behavior whatsoever.

Oh and now it seems, plasmashell --replace doesn't put them back to their proper place.
Comment 15 Nate Graham 2022-10-26 18:10:28 UTC
Thanks for the info.
Comment 16 Dmitry 2022-12-20 21:28:44 UTC
I have an issue with desktop with right side panel. Widgets change position during panel init, they move left.
Comment 17 Dmitry 2022-12-20 21:36:01 UTC
https://pic.li/9rgd(In reply to Dmitry from comment #16)
> I have an issue with desktop with right side panel. Widgets change position
> during panel init, they move left.

screenshot https://pic.li/9rgd
Comment 18 Nate Graham 2022-12-23 22:14:01 UTC
Dmitry, that's a different thing, and currently intentional. If you think it's a big problem, feel free to file a new bug report against plasmashell | Panel. Thanks!
Comment 19 Ismael Asensio 2023-01-03 17:18:04 UTC
Created attachment 154992 [details]
Example with multiple plasmashell reloading

I can reproduce on X11. 

It seems that the widgets are restored to the saved position before the panels show up, (but their position was saved taking into account the previous panel)

Then, as the panel shows up, they're rearranged to re-accommodate  to the smaller desktop area. What happens to every individual widget is slightly different, so I guess that has to do with the different heuristics of resizing.

These small example shows what happens when sequentially restarting plasmashell, which would be equivalent to successive loggings.
Comment 20 Nate Graham 2023-02-12 18:34:01 UTC
This should be fixed in the final Plasma 5.27 release.
Comment 21 Damian C 2023-02-21 09:28:19 UTC
Confirmed, the issue is no longer happening. Thank you!