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

Airplay icon position is reset to the right-most after some time #55

Closed
kn666 opened this issue Dec 24, 2019 · 4 comments
Closed

Airplay icon position is reset to the right-most after some time #55

kn666 opened this issue Dec 24, 2019 · 4 comments

Comments

@kn666
Copy link

kn666 commented Dec 24, 2019

Describe the bug

Airplay icon position is not remembered and always reset to the right-most after some time

Steps to reproduce

  1. Drug airplay icon somewhere to the left in the hiding part
  2. Wait
  3. See airplay icon in the last position to the right of the hiding part

Originally I thought it's caused by reboot. But it survived reboot at least once. At the end of the day I find it going to the right.

Expected behavior

airplay icon position should be preserved

Desktop (please complete the following information):

  • OS: 10.14.6
  • Version 1.3 (1)
    MBP 2018
@kn666 kn666 changed the title Airplay icon position is reset to the right-most after reboot Airplay icon position is reset to the right-most after sometime Dec 24, 2019
@kn666 kn666 changed the title Airplay icon position is reset to the right-most after sometime Airplay icon position is reset to the right-most after some time Dec 24, 2019
@phucledien
Copy link
Member

hmm. I believe this is not our bug. It's the way Apple does stuff I think 🤔. And there is NO official way to adjust the status menu icon position programmatically. So I think there is nothing we can do in this case. Anyway, I will let this issue open and wait for other ideas.

@kn666
Copy link
Author

kn666 commented Dec 24, 2019

How cmd-drug manual icon reposition is handled? This is not a standard function of macos as I understand?

@phucledien
Copy link
Member

phucledien commented Dec 24, 2019

cmd drag is a standard way for rearranging the status menu icon Apple giving to the end-user. And there is no OFFICIAL way for handling something like that programmatically. With the airplay case, I think they are using this private API for always making the icon on the right-most position.

NSStatusItem *item = [NSStatusBar _statusItemWithLength:NSSquareStatusItemLength withPriority:INT32_MAX];

So I think this is an Airplay's bug, not us =]

@kn666
Copy link
Author

kn666 commented Dec 24, 2019

ok, thank you.

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

No branches or pull requests

2 participants