-
Notifications
You must be signed in to change notification settings - Fork 127
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
Change in behavior of Window.focus()
—it now raises all windows of the app.
#266
Comments
@cfraizer Thanks for the report! I just updated to Big Sur, and while most things seem to work as expected, I need to do a brief pass to check what might have changed. It might be that the first conditional here (https://github.com/kasper/phoenix/blob/master/Phoenix/PHWindow.m#L439) fails and it defaults to focusing the whole app instead. |
Your intuition was spot on. That is exactly what is happening. [Laugh at my idiocy: I didn't know how to run an actual debugger against it, so I just added some NSLog statements. Nevertheless, I am certain that the |
@cfraizer Does this happen by the way across all apps or just individual ones? |
Thanks for checking by the way! For the debugger, just click on the line number in Xcode, it should add a breakpoint to the line and then run the app again. The debugger will then stop at that line. |
@kasper It seems to happen across a variety of apps, but I'll try more today and update this ticket. |
Thanks! It might be a bug in Big Sur as well. |
Confirmed that the behavior is the same using windows from Chrome and Apple's Messages app. Whereas before |
After some debugging, this feels to me like a bug in Big Sur. The behaviour has just changed without any reference. |
Yeah, this behavior is just completely wrong, per their documentation. The documentation for
But that is not what it does (anymore). Do you know the best way to bring this to Apple's attention so it can be fixed? |
@cfraizer Submitting a bug report to Apple at https://developer.apple.com/bug-reporting/. |
Cool. I did that this morning. (Not that they ever seem to look at those.) |
@cfraizer Thanks! Yeah, unfortunately. I will also try to file a duplicate so it gets more traction. 😄 |
Hi, @kasper, Thanks to some helpful folks, I found a non-ideal work-around for this issue: I changed I realize that I tested the relevant functionality and it seems to work. If you're at all interested, I can create a pull request and submit it for your review. [When it comes to Mac development, I'm a novice, but I'd be thrilled to receive constructive feedback.] I wonder if we could make it a configuration option until Apple fixes the new API? [Of course, if you don't want to be bothered, I'm happy to just run my own locally-built instance of Phoenix.] |
@cfraizer Hi! Interesting! Have you tested the APIs on Big Sur 11.1? I’d be more than happy to have this as a workaround for Big Sur if you make it conditional for this OS version. Out of curiosity, have you received any response for the bug report? |
I've only tested it in on Big Sur 11.1. Info about my MBP. I just submitted a pull request for your review. I checked FeedbackAssistant again just now. No response from Apple. :-( |
@cfraizer Thanks! I’ve commented on the PR, let’s see how long does it take for Apple to fix this one. |
The workaround for the macOS bug has been merged to master and will be released in 2.6.6. |
@kasper Are there other bugs or small features on which you'd like help? |
@cfraizer Everything is tracked in the issues, you can see if you spot anything interesting. 🙂 |
Say I have two apps and four windows:
Prior to upgrading to Big Sur, I could use Phoenix to
Window.focus()
the window T2 and thenWindow.focus()
the window E1 and be able to see E1 and T2 at the same time.Now, when I
Window.focus()
window E1, it raises both E1 and E2 (obscuring T2). If I thenWindow.focus()
T2, it raises both T1 and T2, obscuring E1.Obviously, this isn't your fault, but some behavior change in OS or framework code. I'm not much of a Cocoa developer, but I'd be happy to try to help if given some advice.
The text was updated successfully, but these errors were encountered: