Bug 431550

Summary: Expanding spacer doesn't consume space from Task Manager appler as it should
Product: [Unmaintained] lattedock Reporter: Chris <chrisbrhm>
Component: containmentAssignee: Michail Vourlakos <mvourlakos>
Status: RESOLVED FIXED    
Severity: normal CC: nate, plasma-bugs-null
Priority: NOR    
Version First Reported In: 0.9.11   
Target Milestone: ---   
Platform: Manjaro   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=431530
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Video to demonstrate the issue
Plasma panel vs Latte panel behavior

Description Chris 2021-01-13 16:27:19 UTC
Created attachment 134808 [details]
Video to demonstrate the issue

SUMMARY
By default, the task manager "expands" to the right (i.e. fill all available space). This has caused an issue for me in Latte dock, whereby I am unable to drag from the panel to restore the active window.

See the attached video.

STEPS TO REPRODUCE
1. Add icons-only task manager to a Latte-dock panel
2. Open a window and maximise it.
3. Drag from an empty space filled by the task manager.
4. Drag from an empty space /not/ filled by the task manager.

OBSERVED RESULT
The active window is not restored (remains maximised) in step 3, but /is/ restored in step 4.

EXPECTED RESULT
The active window should be restored in step 3. 

I have contacted the developer of Latte dock, and he thinks that it is due to the fact that the task manager expands to fill available space.
Comment 1 Nate Graham 2021-01-13 20:16:16 UTC
Does this happen with a standard Plasma panel rather than Latte Dock?
Comment 2 Chris 2021-01-14 06:24:15 UTC
Hi Nate, on a standard panel, the icons-only task manager also expands to the right, but this is not that much of a problem, since the standard panel does not have an option to "restore windows by dragging from panel".

However, on a standard panel, if you put an expanding spacer to the right of the task manager, the expanding spacer takes precedence (i.e. the empty space is filled by the spacer, not the task manager). That is not the case on a Latte panel. Come to think of it, my problem could be solved if Latte gave precedence to the spacer.
Comment 3 Nate Graham 2021-01-14 19:12:16 UTC
Yep, that seems like the issue. That's certainly how the spacer is intended to behave. :)
Comment 4 Michail Vourlakos 2021-01-14 19:43:39 UTC
(In reply to Nate Graham from comment #3)
> Yep, that seems like the issue. That's certainly how the spacer is intended
> to behave. :)

good idea! you can add a Latte Spacer that feels space in Latte Justify alignment, it should work.
Comment 5 Chris 2021-01-15 08:09:35 UTC
Created attachment 134880 [details]
Plasma panel vs Latte panel behavior

(In reply to Michail Vourlakos from comment #4)
> good idea! you can add a Latte Spacer that feels space in Latte Justify
> alignment, it should work.

It seems that it does not work... I did the steps described below.

STEPS TO REPRODUCE:
1. Create a blank latte panel
2. Create a blank plasma panel
3. Add an icons-only task manager to both panels
4. Add an expanding latte-spacer on the right of task manager in the latte-panel.
5. Add an expanding plasma spacer on the right of the task manager in the plasma panel.

OBSERVED RESULT:
On the latte panel, the blank space is filled by the task manager. On the plasma panel, the blank space is filled by the spacer.

NOTES:
I also made a screen recording of the above steps. See attached.
Comment 6 Michail Vourlakos 2021-01-15 11:10:29 UTC
1. Are you using latest Latte git version?
2. Did you set Justify alignment for the Latte panel?
Comment 7 Chris 2021-01-21 20:37:36 UTC
(In reply to Michail Vourlakos from comment #6)
> 1. Are you using latest Latte git version?
> 2. Did you set Justify alignment for the Latte panel?

Hi Michail. Sorry for only responding now, I had a really busy week!

1. I am using the the latest release version (v0.9.11-1). I can switch to the git version this weekend and will report my findings.

2. Yes. I set justify alignment, recycled the latte-tasks widget and replaced it with the icons-only-tasks widget.
Comment 8 Michail Vourlakos 2021-02-02 19:52:03 UTC
I think this is fixed and works just fine in git version, feel free to reopen if it does not.
Comment 9 Chris 2021-02-02 20:06:12 UTC
Hi Michail. Thanks so much for your efforts! I unfortunately haven't had time yet to test the Git version.

I hope that my bug report has been constructive. I really don't want to make bug reports that distract the developers from the main goals of the project.