Skip to content

dash: Use a different container to hold floating ShowAppsIcon#2021

Merged
3v1n0 merged 5 commits into
micheleg:masterfrom
3v1n0:rearrange-fix-icons
Jun 2, 2023
Merged

dash: Use a different container to hold floating ShowAppsIcon#2021
3v1n0 merged 5 commits into
micheleg:masterfrom
3v1n0:rearrange-fix-icons

Conversation

@3v1n0

@3v1n0 3v1n0 commented May 31, 2023

Copy link
Copy Markdown
Collaborator

When using a floating show apps icon setup, it needs to be at the same level of the dash box, but we can't use the same container because upstream code only uses that for application icons, and this assumption may break things such as DnD and potentially other things.

So move things in a new container.

Closes: #2010

When using a floating show apps icon setup, it needs to be at the same
level of the dash box, but we can't use the same container because
upstream code only uses that for application icons, and this assumption
may break things such as DnD and potentially other things.

So move things in a new container.

Closes: micheleg#2010
3v1n0 added 4 commits June 2, 2023 03:13
The separator may be wrongly computed as an extra icon item,
causing new items being positioned in the wrong place.

This is clearly visible when running a new application, that ends
up being added as the one before the last one, instead of as the
last one.

By temporary removing the separator element we avoid having to
consider the special case all the times when doing the icons
positioning math, instead we can just add it back once we're
done.

See: micheleg#2010 (comment)

LP: #2017523
Just get the actual number of icons we've in the box minus the ones
we're going to remove.

So that our math is right about when to show the separator
@3v1n0 3v1n0 force-pushed the rearrange-fix-icons branch from 8e0cf3a to d5e6eea Compare June 2, 2023 01:26
@3v1n0 3v1n0 merged commit cae9f64 into micheleg:master Jun 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Dash to dock broken, unable to rearrange icons

1 participant