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

Starting with macOS 12.2, AltTab only grabs windows in active spaces #1324

Open
skyzyx opened this issue Jan 13, 2022 · 40 comments
Open

Starting with macOS 12.2, AltTab only grabs windows in active spaces #1324

skyzyx opened this issue Jan 13, 2022 · 40 comments
Labels
bug Something isn't working macOS 12 macOS 12 Monterey specific issue macOS 13 macOS 13 Ventura specific issue need breakthrough Need a breakthrough idea to move forwards

Comments

@skyzyx
Copy link

skyzyx commented Jan 13, 2022

Describe the bug

  • I work with 2 monitors
  • I work almost exclusively in full-screen mode

I updated to macOS 12.2 Beta (21D5039d) this morning, and since then, AltTab only grabs the front-most full-screen app window from each of my displays — ignoring the full-screen windows that are not front-most.

I know that the full-screen support is buggy because this app has to use private APIs, etc., but I wanted to bring this situation to the attention of the developers as a known issue.

Usually when AltTab is missing windows, I can quit and re-launch the app to get it to pick up the current state of my environment. However, even this action no longer works as of this morning's macOS beta update.

Screenshots / video

http://s3.ryanparman.com.s3.amazonaws.com/alttab-bug-1.mp4

@skyzyx skyzyx added the bug Something isn't working label Jan 13, 2022
@lwouis lwouis added the macOS 12 macOS 12 Monterey specific issue label Jan 14, 2022
@dnivi3
Copy link

dnivi3 commented Jan 28, 2022

Seeing the same on macOS 12.2 (21D49), the production version of macOS 12.2.

@kaatt
Copy link

kaatt commented Jan 29, 2022

likely related to kasper/phoenix#289 and ianyh/Amethyst#1192

@dnivi3
Copy link

dnivi3 commented Feb 2, 2022

Looks like Amethyst has fixed this in ianyh/Amethyst#1184

@lwouis
Copy link
Owner

lwouis commented Feb 2, 2022

@dnivi3 the code change you linked to is this:

image

Changing the order remove -> add to add -> remove. AltTab already does add -> remove:

image

@dnivi3
Copy link

dnivi3 commented Feb 3, 2022

@lwouis yeah, I realised my layman non-technical understanding of this isn't helpful. Is there any I can help or contribute towards this getting fixed?

@lwouis
Copy link
Owner

lwouis commented Feb 3, 2022

@dnivi3 i'm afraid only code contributions would help. Please see #1179

@lwouis
Copy link
Owner

lwouis commented Feb 4, 2022

Related: #1351

@stevetodd
Copy link

Just to add the datapoint, the issue persists in the newly released macOS 12.3.

@radaczynski
Copy link

radaczynski commented Apr 9, 2022

This behaviour is repeatable. I have 3 desktops. When restarting alt-tab, windows from the active one get detected correctly, the switcher works just as expected, while on the other desktops only the active window is shown in the switcher. Restarting the apps/reopening the windows causes them to be shown in the switcher. Macos 12.3.1 here.

@kaatt
Copy link

kaatt commented Apr 9, 2022

Allowing screen recording permissions to the app should fix this.

@radaczynski
Copy link

@kaatt - were you refering to my comment? It does not fix this issue - AltTab had the permission to record screen all the time. Windows from the current desktop are detected just fine after restart of AltTab, but on other desktops only one window is detected (+ all the windows that are created after AltTab is launched).

@lwouis
Copy link
Owner

lwouis commented Apr 28, 2022

It seems that we could simply replace the call to CGSAddWindowsToSpaces with a call to CGSMoveWindowsToManagedSpace.

Can anyone confirm this would work?

@lwouis
Copy link
Owner

lwouis commented May 7, 2022

I experimented with replacing CGSAddWindowsToSpaces with CGSMoveWindowsToManagedSpace. It's not a 1-to-1 replacement. It doesn't move fullscreen windows. It successfully moves regular windows, and moves them back, but it doesn't do anything for fullscreen windows, thus AltTab doesn't see them.

@dnivi3
Copy link

dnivi3 commented May 7, 2022

@lwouis glad to hear it solves for regular windows, but shame with fullscreen ones. Selfishly, this solves for my use cases. Is there a branch I can build from to test this?

@lwouis
Copy link
Owner

lwouis commented May 8, 2022

Is there a branch I can build from to test this?

i'm sorry, there isn't

@lwouis lwouis added the need breakthrough Need a breakthrough idea to move forwards label Feb 1, 2024
This was referenced Sep 10, 2024
@J-Siu
Copy link

J-Siu commented Nov 6, 2024

I just notice this recently. And the strange part is, it is inconsistent between apps.

I have two steam games, "Undead Hord 2" and "Nova Drift". I play both in full screen. When I cmd+tad out of the game, I can see both in the task list. However, from desktop, when I try to cmd-tab back to the game, "Nova Drift" shows, while "Undead Hord 2" won't.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working macOS 12 macOS 12 Monterey specific issue macOS 13 macOS 13 Ventura specific issue need breakthrough Need a breakthrough idea to move forwards
Projects
None yet
Development

No branches or pull requests