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

Slack Huddle Window does not show in AltTab #3042

Open
adammw opened this issue Dec 6, 2023 · 11 comments
Open

Slack Huddle Window does not show in AltTab #3042

adammw opened this issue Dec 6, 2023 · 11 comments
Labels
bug Something isn't working specific-app Issue which happens only with a specific app unreproducible Need help from the author to reproduce the issue

Comments

@adammw
Copy link

adammw commented Dec 6, 2023

Describe the bug

Slack's Huddle Window does not show in AltTab.

Screenshots / video

Add screenshots to help explain your problem. You can also record your screen to show the bug in action. That is really helpful!
Screenshot 2023-12-07 at 10 23 41 am
Screenshot 2023-12-07 at 10 24 07 am

Steps to reproduce the bug

  1. Open Slack Desktop App
  2. Sign in, in a channel start a Huddle
  3. Click the open in pop out window button
  4. See that the new window cannot be alt-tabbed to

Your environment

  • AltTab version: 6.64.0
  • macOS version: 13.6.1 (22G313)
  • Other relevant info: 3xMonitor Setup, Alt-Tab configured to show all apps on all screens for visible spaces

I have managed to get it to show up once eventually after moving the window to various monitors and full screen, but have not been able to reproduce that.

@adammw adammw added the bug Something isn't working label Dec 6, 2023
@lwouis
Copy link
Owner

lwouis commented Dec 10, 2023

Hi,

I tried the steps and couldn't reproduce the issue. The window shows correctly for me.

Any idea about differences in a steps between the cases where it happens and the cases where it doesn't happen?
You mentioned multiple monitors and fullscreen. We have a known issue today (#1324) where we can't see windows from other Spaces. So monitors and fullscreen could be the cause for you.

Thank you 🙇

@lwouis lwouis added the unreproducible Need help from the author to reproduce the issue label Dec 10, 2023
@jameshfisher
Copy link

I can reproduce - this recently started happening to me.

AltTab 6.64.0
macOS 14.1.2

@daedal-knickerbockers
Copy link

This has been happening on my machine for quite a while - it sometimes works though, but I have no clue what triggers it.

AltTab 6.64.0
macOS 13.4

@FelDev
Copy link

FelDev commented Dec 13, 2023

There is something odd about Slack's Huddle window.
see https://www.reddit.com/r/Slack/comments/166jth1/slack_huddles_window_management_on_mac/
I'd like them to fix their desktop app, rather than have every other app in the Mac ecosystem adapt to their hacky thingy.
Ping those people https://github.com/slackhq ? idk...

@jameshfisher
Copy link

I did some previous work on macOS window management. Here's an example of an "odd" window:

let panel:NSPanel = NSPanel(
    styleMask: [
        NSWindow.StyleMask.nonactivatingPanel,
    ],
)

panel.collectionBehavior = [
    NSWindow.CollectionBehavior.canJoinAllSpaces,
    NSWindow.CollectionBehavior.fullScreenAuxiliary,
    NSWindow.CollectionBehavior.stationary
]

I'm guessing that the Slack Huddle window is an NSPanel, with some odd config in either its styleMask or collectionBehavior.

Does macOS provide a way to list all windows and their config? We'd soon see what's unusual about the Huddle window.

@jameshfisher
Copy link

( The UI for alt-tab-macos is itself an example of an "odd" window: https://github.com/lwouis/alt-tab-macos/blob/master/src/ui/main-window/ThumbnailsPanel.swift#L3-L26 )

@jameshfisher
Copy link

I think this is where alt-tab-macos gets its list of windows:

return CGWindowListCopyWindowInfo([.excludeDesktopElements, option], kCGNullWindowID) as! [CGWindow]

@jameshfisher
Copy link

I don't have time to dig further, but this CGWindowListCopyWindowInfo call is where I'd start

@lwouis
Copy link
Owner

lwouis commented Dec 13, 2023

@jameshfisher AltTab has to hide some UI elements like HUDs, popovers, some dialogs, etc. The huddle window is showing in AltTab sometimes. For me, 100% of times.

If AltTab is not showing it, it's either that they change properties of that window over time. For instance maybe they add an animation like the window starts as a HUD and morphs into a window. Apple Books.app was doing such things. We added a tracker to see when windows change state later on because of them. So it would have to be extra crazy/unexpected for AltTab to not pick it up. The other possibility is that there is something about other Spaces or Fullscreen. Those windows can't be detected (see #1324)

Slack has to fix this. Thousands of other apps show correctly in AltTab. It's on their side.

@adammw
Copy link
Author

adammw commented Dec 21, 2023

I've found I can reproduce where it shows up correctly when starting alt-tab after the window is opened, but not if alt-tab is already running when the window is opened.

Screenshot 2023-12-22 at 10 50 15 am

@lwouis
Copy link
Owner

lwouis commented Jan 2, 2024

@adammw if the window is not shown by AltTab but then shown after AltTab is restarted it's likely that the window has changed after it spawn, and while at that time AltTab rejected it, it accepts it later. It seem to corroborate what I wrote above: #3042 (comment)

@lwouis lwouis added the specific-app Issue which happens only with a specific app label Nov 6, 2024
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 unreproducible Need help from the author to reproduce the issue
Projects
None yet
Development

No branches or pull requests

5 participants