Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 5 commits into from
Jun 2, 2023

Conversation

3v1n0
Copy link
Collaborator

@3v1n0 3v1n0 commented May 31, 2023

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 merged commit cae9f64 into micheleg:master Jun 2, 2023
1 check passed
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