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

The Android Studio emulator toolbar appears in Alt-Tab #3496

Open
ShlomoCode opened this issue Jul 18, 2024 · 11 comments
Open

The Android Studio emulator toolbar appears in Alt-Tab #3496

ShlomoCode opened this issue Jul 18, 2024 · 11 comments
Labels
bug Something isn't working specific-app Issue which happens only with a specific app

Comments

@ShlomoCode
Copy link
Contributor

ShlomoCode commented Jul 18, 2024

Describe the bug

Android Studio emulators have a sort of vertical toolbar attached:
CleanShot 2024-07-18 at 06 35 19@2x

Alt Tab displays the toolbar as a separate windows (I think the toolbar should not appear at all):
CleanShot 2024-07-18 at 06 36 18@2x

This is NOT a regression by 2e15732,
I checked with v6.71.0 and the toolbar appears.

If there is any additional information you need, please let me know!

  • AltTab version: 6.72.0
  • macOS version: 14.5
@ShlomoCode ShlomoCode added the bug Something isn't working label Jul 18, 2024
@lwouis
Copy link
Owner

lwouis commented Jul 18, 2024

Hi,

We already have hard-coded a workaround for this. I'm surprised it stopped working. Android Studio must have been updated recently.

This issue is not on AltTab side. This vertical bar is a window. That's why AltTab can report it.

I think it would be useful to report this issue to Android Studio support. AltTab was working around the issue, but the root cause remains. Also, maybe the Android Studio team wants this bar to be a separate window?

Thank you

@ShlomoCode
Copy link
Contributor Author

What is the sidebar element expected to be? I need a little more details to contact them.

@lwouis
Copy link
Owner

lwouis commented Jul 18, 2024

AltTab displays Standard Windows and Dialogs. If an app use that to make a UI element, it will show in AltTab. If they use another element like a HUD or custom UI, then AltTab will not display it.

There are many "popups", "popovers", little pieces of UI that exist on your OS which don't show in AltTab. This is because they were implemented using relevant APIs, and they are not standard windows.

Thank you

@ShlomoCode
Copy link
Contributor Author

ShlomoCode commented Jul 18, 2024

Yes I checked and the subrole is AXDialog (kAXDialogSubrole), so it doesn't reach the line

androidEmulator(runningApp, title)

at all. it returns true in

[kAXStandardWindowSubrole, kAXDialogSubrole].contains(subrole) ||

In the past sidebar was not AXDialog?

@lwouis
Copy link
Owner

lwouis commented Jul 18, 2024

In the past sidebar was not AXDialog?

I guess so. They may have updated it, which broke our workaround.

Again, the real issue is not with AltTab, but the fact that they consider this UI element a Dialog. AltTab should show dialogs as it's the kind of stuff the user wants to tab to and from.

@ShlomoCode
Copy link
Contributor Author

Do you know how Mission Control knows to show them as one window?

CleanShot 2024-07-18 at 16 23 28@2x

CleanShot X also captures them together.

@lwouis
Copy link
Owner

lwouis commented Jul 18, 2024

I think they may be using child/parent NSWindow APIs?

@ShlomoCode
Copy link
Contributor Author

The point is that maybe this is the right behavior on their part, and the problem is with AltTab not behaving like Mission Control and the like?

@lwouis
Copy link
Owner

lwouis commented Jul 18, 2024

This pattern of windows glued together is very uncommon. Photoshop works with lots of panels like this, but people tend to move them around their multiple monitor, so AltTab should probably show them independently and not as a giant imagine scattered panels.

Can you move the side-panel around in the case of Android Emulator? If yes, then same issue as with Photoshop. If no, then it's a very unique UI pattern.

Another similar case we have with linked-windows is "Save As" or "Open" file pickers. Currently, we don't show them as independant windows, nor do we show them on the thumbnail of their parent window. It's a very tricky situation since these are Sheets, and there are many types with different behavior.

Android Emulator is an outlier. That is, no one is complaining about other windows in that configuration, being an issue with AltTab. I'm not sure how to go forwards here.

I'll also add that this app is poorly wraped in general. It doesn't have an Icon or a BundleID for instance. This is why I suggest sharing feedback with them. This thing surely could get better integrated into macOS.

@ShlomoCode
Copy link
Contributor Author

@lwouis lwouis added the specific-app Issue which happens only with a specific app label Nov 6, 2024
@slkmikhail
Copy link

slkmikhail commented Dec 11, 2024

AltTab has started showing tool windows for the last versions of Idea Intellij, Android Studio even they have view mode "Float".
@lwouis Could you consider to add regex to blacklist? Because the workaround by PR takes a long time.

For instance, everybody can to pick an app in blacklist and then set window titles(regex) of that app which must not be showed by AltTab.

2024-12-11_16-30-51

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working specific-app Issue which happens only with a specific app
Projects
None yet
Development

No branches or pull requests

3 participants