Bug 401456 - Task manager does not appear when first windows of session are launched; then does not size down when they are closed
Summary: Task manager does not appear when first windows of session are launched; then...
Status: RESOLVED FIXED
Alias: None
Product: lattedock
Classification: Plasma
Component: containment (show other bugs)
Version: 0.8.3
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Michail Vourlakos
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-11-27 05:18 UTC by AndyKluger
Modified: 2018-11-27 21:12 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In: 0.8.4
Sentry Crash Report:


Attachments
Video of behavior (1.67 MB, video/x-matroska)
2018-11-27 05:18 UTC, AndyKluger
Details
Image of dock after windows are closed (119.39 KB, image/png)
2018-11-27 05:19 UTC, AndyKluger
Details

Note You need to log in before you can comment on or make changes to this bug.
Description AndyKluger 2018-11-27 05:18:55 UTC
Created attachment 116528 [details]
Video of behavior

SUMMARY

Opening windows just after logging in does not make the task manager applet show any windows or take any larger-than-zero size. Restarting latte after windows are open fixes this, but then when windows are closed, it doesn't size back down to its original (zero) size.

STEPS TO REPRODUCE
1. Log into a session that autostarts latte with "latte-dock %u"
2. With a centered, bottom, autohide dock containing a task manager and an analog clock, open some windows
3. latte-dock -r
4. Close those windows

OBSERVED RESULT

Flicker is only in recording. See attached video.

After closing those windows: See attached image.

EXPECTED RESULT

Task manager should populate as soon as windows are opened, without needing to restart latte. Task manager should shrink back to zero when windows are closed.

SOFTWARE/OS VERSIONS
Arch Linux
KDE Plasma Version: 5.14.3
KDE Frameworks Version: 5.52.0
Qt Version: 5.11.2-3
Comment 1 AndyKluger 2018-11-27 05:19:49 UTC
Created attachment 116529 [details]
Image of dock after windows are closed
Comment 3 Michail Vourlakos 2018-11-27 08:19:27 UTC
there is a chance that this has been fixed in upcoming 0.8.4 and git version...

If you can not test these version now to confirm the fix I will leave it open until 0.8.4 has landed and you are able to confirm the behavior...
Comment 4 AndyKluger 2018-11-27 18:43:48 UTC
I've confirmed the same behavior with 74f80cd4dbe7dadbe60f89bc14ffceed9d9f17ba (git describe: v0.7.96-168-g74f80cd4; latte-dock -v: 0.8.75).
Comment 5 Michail Vourlakos 2018-11-27 19:08:23 UTC
I can reproduce... I will check out what the plasma taskmanager specifies for Layout(s) in that case in order to confirm if this is Latte problem or plasma taskmanager has a workaround...
Comment 6 Michail Vourlakos 2018-11-27 21:11:22 UTC
Git commit d364621e5a74d22d035f1e1f7d4bc608b70f0bca by Michail Vourlakos.
Committed on 27/11/2018 at 21:08.
Pushed by mvourlakos into branch 'master'.

improve fill(s) calculations for single alignments

--improve how the applet size is calculated for fill(s)
applets when such applets are used in Left/Center/Right
alignments. This also fixes the bug that the plasma
taskmanager was not updating its size properly when tasks
were added after the initialization phase.

A  +25   -0    containment/package/contents/code/MathTools.js
M  +16   -11   containment/package/contents/ui/applet/AppletItemWrapper.qml

https://commits.kde.org/latte-dock/d364621e5a74d22d035f1e1f7d4bc608b70f0bca
Comment 7 Michail Vourlakos 2018-11-27 21:12:30 UTC
Git commit c9b99434ed33b20fcc32deebb4561983a3c3400d by Michail Vourlakos.
Committed on 27/11/2018 at 21:12.
Pushed by mvourlakos into branch 'v0.8'.

improve fill(s) calculations for single alignments

--improve how the applet size is calculated for fill(s)
applets when such applets are used in Left/Center/Right
alignments. This also fixes the bug that the plasma
taskmanager was not updating its size properly when tasks
were added after the initialization phase.
FIXED-IN: 0.8.4

A  +25   -0    containment/package/contents/code/MathTools.js
M  +16   -11   containment/package/contents/ui/applet/AppletItemWrapper.qml

https://commits.kde.org/latte-dock/c9b99434ed33b20fcc32deebb4561983a3c3400d