Bug 382759 - Can't keep pager positioned in lower right corner of desktop
Summary: Can't keep pager positioned in lower right corner of desktop
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Pager (show other bugs)
Version: 5.10.1
Platform: Other Linux
: NOR normal
Target Milestone: 1.0
Assignee: Eike Hein
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-07-26 16:05 UTC by George Avrunin
Modified: 2017-08-18 11:44 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description George Avrunin 2017-07-26 16:05:07 UTC
I have four fully-updated Fedora 26 machines running plasmashell 5.10.1 and on each I use 12 desktops in 4 rows of 3, with the pager sitting just above the (bottom) panel in the lower right corner of the screen.  This arrangement has worked in KDE for a long time (and I've had a pager in the lower right corner since I was using fvwm a long time ago, so I want to keep it here).

But since I upgraded to Fedora 26 (using "dnf system-upgrade"), I've had trouble keeping the pager in that location.  It seems to want to be in the lower left.  Initially, I couldn't even move it more than about 7/8 to the right along the panel; if I went farther than that, the pager would just snap back to the lower left corner.  And though I could move it to the right edge if I kept it far enough above the panel, when I started to move it down, it would shrink to a minuscule size. 

After killing off the instance of the pager that was running, I've been able to get a new instance to move most of the way into the lower right corner and stay there until I log out.  But whenever I log back in, the pager has moved to the lower left corner (even if I lock widgets before logging off).  Saving the session doesn't seem to have any effect, either. 

I've created a new user on two different machines and seen the same behavior.  A web search didn't turn up any indication of changes in the pager that would affect its location or any other reports of this sort of problem.

I have asked about this on the Fedora KDE list and haven't received any response, so I assume nobody else is seeing this problem.
Comment 1 Christoph Feck 2017-08-02 11:25:54 UTC
Could you please check if this is a duplicate of bug 379658?
Comment 2 George Avrunin 2017-08-02 12:15:40 UTC
I don't think it's a duplicate of 379658; at least my problem doesn't involve the panel.  I have the pager in the main window (plasma background, whatever it's really called), not in the panel.  In the panel (at the bottom of the screen), I have a task manager, the global menu, claws-mail, the system tray, and the clock (so the task manager pushes the other widgets all the way to the right).  I'm trying to keep the pager above the clock, not in the panel at all.

I have also discovered that trying to keep the pager in the upper right panel of the main window doesn't work, with the same behavior of it snapping to the left, or, if it finally does stick near the corner, moving to the upper left corner on the next login.

On the Fedora KDE list, Ed Greshko says that he has also observed this phenomenon.  The thread with our discussion (and links to a couple of screenshots) is at https://lists.fedoraproject.org/archives/list/kde@lists.fedoraproject.org/thread/TGC3HLOGPLKLE3YZMPWEVSK2ICW4MHUL/
Comment 3 George Avrunin 2017-08-02 12:34:26 UTC
A screenshot of what I'm trying to keep across logins is here: http://ext.math.umass.edu/~avrunin/Screenshot_20170727_163024.png
Comment 4 Eike Hein 2017-08-02 17:16:08 UTC
Reproduced.
Comment 5 George Avrunin 2017-08-07 16:45:16 UTC
Some additional information.  If I logout and log back in, the pager will be in the lower left corner, not the lower right corner.  When I logged in just now, the pager refused to stay in the lower right at all, jumping to the lower left as soon as I released the cursor after dragging the pager to the lower right.  But I did "killall plasmashell; kstart plasmashell" and the pager snapped back to the position in the lower right that it had been in when I logged out last.  I hope this might help you identify the source of the problem.
Comment 6 Eike Hein 2017-08-08 12:21:57 UTC
This is some sort of mess with the way the Pager's size hints and the containment cell budgeting interact. I'm grateful you reported this bug and made it find us. It might take a little bit to find enough time to debug this and fix it (there's always so much in flight competing for attention) but rest assured we'll get to it and fix it.
Comment 7 George Avrunin 2017-08-08 15:42:52 UTC
Thanks.  I hope the bug will be easy to isolate and fix.
Comment 8 Eike Hein 2017-08-18 11:44:30 UTC
Git commit 3e3f0decc98304949c1f7cbb196bdf0686e75a08 by Eike Hein.
Committed on 18/08/2017 at 11:32.
Pushed by hein into branch 'Plasma/5.10'.

Compress size hint changes before releasing position and repositioning item.

Summary:
D4204 / d7621da69b9b introduced more elaborate handling of item size
hint changes, releasing and repositioning an item for each change to
the min/max hints on either axis. We have applets in which the x and
y hints are coupled and update in turn, to implement aspect-ratio-
preserving resize. This makes the value on an individual axis a
useless temporary, wreaking havoc when followed.

As a poor means to commit size hint changes atomically, a 100ms timer
is used to compress size hint changes. The 100ms interval matches
layoutTimer in main.qml.

Not very happy with this.

Together with D7384 this addresses:

Reviewers: #plasma, mart

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D7385

M  +18   -16   containments/desktop/package/contents/ui/AppletAppearance.qml

https://commits.kde.org/plasma-desktop/3e3f0decc98304949c1f7cbb196bdf0686e75a08