Bug 404252

Summary: Virtual Desktop Pager is Not Displayed
Product: [Unmaintained] lattedock Reporter: AndyKluger
Component: containmentAssignee: Michail Vourlakos <mvourlakos>
Status: RESOLVED UPSTREAM    
Severity: normal CC: trmdi
Priority: NOR    
Version First Reported In: 0.8.5   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Layout without pager
Layout with pager
Video of behavior

Description AndyKluger 2019-02-12 18:20:11 UTC
Created attachment 118010 [details]
Layout without pager

SUMMARY

Attempting to add a virtual desktop pager to a dock does not appear to have any effect, other than in the configuration file. If I keep trying to add a pager, the configuration file gains more entries.

STEPS TO REPRODUCE
1. Right-click dock, Add Widgets
2. Drag pager to dock

OBSERVED RESULT

No pager is added to the UI, though it is added in the configuration file.

EXPECTED RESULT

Pager visible on dock

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch Linux, plasma-desktop 5.14.5-2, latte-dock 0.8.5-1

(available in About System)
KDE Plasma Version: 5.14.5
KDE Frameworks Version: 5.55.0
Qt Version: 5.12.1

ADDITIONAL INFORMATION

I am attaching:

1) redacted layout file before adding one pager
2) redacted layout file after adding one pager
3) video demonstration of bug
Comment 1 AndyKluger 2019-02-12 18:20:42 UTC
Created attachment 118011 [details]
Layout with pager
Comment 2 AndyKluger 2019-02-12 18:23:11 UTC
Created attachment 118012 [details]
Video of behavior
Comment 3 Michail Vourlakos 2019-02-12 19:32:23 UTC
video does not work, better use google drive or dropbox to share videos with issues
Comment 4 Michail Vourlakos 2019-02-12 19:35:47 UTC
The desktop pager is shown ONLY if there are two or more desktops OR when there is only one desktop and Latte is in edit mode meaning when the Dock/Panel settings are shown.

Is that the case?
Comment 5 AndyKluger 2019-02-13 01:18:41 UTC
(In reply to Michail Vourlakos from comment #3)
> video does not work, better use google drive or dropbox to share videos with
> issues

The video works fine with mpv. Just point mpv to the attachment URI.

> The desktop pager is shown ONLY if there are two or more desktops

Ah! I had a pager on a different edge before, and when I removed it, I didn't realize that also erased my virtual desktop names, count, and arrangement. I thought the result was that I had multiple desktops, but the shortcuts were erased, so no keyboard method to switch between them. I see now the other desktops have been entirely removed, but the shortcuts remain and work again when I re-add desktops.

Is this behavior of hiding the virtual desktop manager with only one desktop intentional? This doesn't make sense to me, as it removes the convenient ways to create more or change settings. If it is, this bug is invalid. Another reason to change that behavior is that a user might, as I did, not have any idea the add-widget action was successful, and add 20 or so hidden desktop pagers, waiting to pounce on the user when they eventually find another way to add a new desktop.
Comment 6 Michail Vourlakos 2019-02-13 05:22:07 UTC
Latte just respects what the applet wants, if you think the applet should behave differently you must report it to plasma
Comment 7 trmdi 2019-02-13 06:53:40 UTC
(In reply to andydecleyre from comment #2)
> Created attachment 118012 [details]
> Video of behavior

You did't add it successfully. Try to drag and drop again more slowly.

This is a fixed bug: https://bugs.kde.org/show_bug.cgi?id=396011
Comment 8 trmdi 2019-02-13 07:02:32 UTC
(In reply to trmdi from comment #7)
> This is a fixed bug: https://bugs.kde.org/show_bug.cgi?id=396011

Sorry, that isn't it. Ignore my comment.