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

Some focused windows don't pop to the front #3823

Open
alt-tab-macos-bot opened this issue Nov 7, 2024 · 20 comments
Open

Some focused windows don't pop to the front #3823

alt-tab-macos-bot opened this issue Nov 7, 2024 · 20 comments
Labels
bug Something isn't working unactionable Further action is not possible due to lack of information or support unreproducible Need help from the author to reproduce the issue

Comments

@alt-tab-macos-bot
Copy link

This issue was opened by a bot after a user submitted feedback through the in-app form.

From: w2w2k2k2@gmail.com

Message:

This is the same as #3630

Problem: Selected window does not pop up to the front.

How to reproduce:

  • Open an app (e.g. Mac Calendar APP)
  • Close the window (CMD + W)
  • Re-open the window by click the APP icon (e.g. Calendar) in dock

Then you'll find when switching back to the window using Alt Tab, it does not pop to the front of screen

Debug profile

  • App version: 7.2.0
  • App preferences:
    • MSAppCenter310AppCenterUserDefaultsMigratedKey: 1
    • MSAppCenter310CrashesUserDefaultsMigratedKey: 1
    • MSAppCenterAppDidReceiveMemoryWarning: 1
    • MSAppCenterInstallId: A1EF5885-1DDF-4344-A200-7B300166ACD6
    • MSAppCenterNetworkRequestsAllowed: 0
    • MSAppCenterPastDevices: {length = 1150, bytes = 0x62706c69 73743030 d4010203 04050607 ... 00000000 0000038a }
    • MSAppCenterSessionIdHistory: {length = 460, bytes = 0x62706c69 73743030 d4010203 04050607 ... 00000000 00000156 }
    • MSAppCenterUserIdHistory: {length = 455, bytes = 0x62706c69 73743030 d4010203 04050607 ... 00000000 00000151 }
    • NSWindow Frame NSFontPanel: 2045 174 445 239 0 0 2560 1575
    • NSWindow Frame SUStatusFrame: 1304 1164 400 135 0 0 3008 1667
    • NSWindow Frame SUUpdateAlert: 1194 967 620 398 0 0 3008 1667
    • SUHasLaunchedBefore: 1
    • SULastCheckTime: 2024-11-06 18:39:34 +0000
    • SUUpdateGroupIdentifier: 992532835
    • SUUpdateRelaunchingMarker: 0
    • alignThumbnails: 1
    • appsToShow: 1
    • appsToShow3: 0
    • appsToShow4: 1
    • cancelShortcut:
    • crashPolicy: 2
    • fadeOutAnimation: true
    • hideWindowlessApps: true
    • holdShortcut: ⌥
    • holdShortcut2: ⌥
    • holdShortcut3: ⌘
    • holdShortcut4: ⌃
    • holdShortcut5: ⌃
    • iconSize: 64
    • maxHeightOnScreen: 76
    • maxWidthOnScreen: 90
    • nextWindowShortcut: `
    • nextWindowShortcut2: ⇥
    • nextWindowShortcut3: `
    • nextWindowShortcut4: `
    • nextWindowShortcut5:
    • preferencesVersion: 7.2.0
    • previewFocusedWindow: false
    • rowsCount: 3
    • screensToShow: 1
    • screensToShow3: 1
    • screensToShow4: 1
    • shortcutStyle: 0
    • showHiddenWindows: 2
    • showHiddenWindows2: 2
    • showHiddenWindows3: 2
    • showHiddenWindows4: 2
    • showMinimizedWindows: 1
    • showMinimizedWindows2: 1
    • showMinimizedWindows3: 1
    • showMinimizedWindows4: 1
    • showOnScreen: 1
    • spacesToShow: 1
    • spacesToShow3: 1
    • spacesToShow4: 1
    • updatePolicy: 1
    • windowDisplayDelay: 198
    • windowMaxWidthInRow: 25
    • windowMinWidthInRow: 22
  • Applications: 61
  • Windows: 50
    • {isFullscreen: false, isWindowlessApp: false, isMinimized: false, isHidden: false, isTabbed: false, isOnAllSpaces: false, shouldShowTheUser: true, spaceId: 4, spaceIndex: 2}
    • {isFullscreen: false, isWindowlessApp: false, isMinimized: false, isHidden: false, isTabbed: false, isOnAllSpaces: false, shouldShowTheUser: true, spaceId: 4, spaceIndex: 2}
    • {isFullscreen: false, isWindowlessApp: false, isMinimized: false, isHidden: false, isTabbed: false, isOnAllSpaces: false, shouldShowTheUser: true, spaceId: 4, spaceIndex: 2}
    • {isFullscreen: false, isWindowlessApp: false, isMinimized: false, isHidden: false, isTabbed: true, isOnAllSpaces: false, shouldShowTheUser: false, spaceId: 4, spaceIndex: 2}
    • {isFullscreen: false, isWindowlessApp: false, isMinimized: false, isHidden: false, isTabbed: false, isOnAllSpaces: false, shouldShowTheUser: true, spaceId: 4, spaceIndex: 2}
    • {isFullscreen: false, isWindowlessApp: false, isMinimized: false, isHidden: false, isTabbed: true, isOnAllSpaces: false, shouldShowTheUser: false, spaceId: 4, spaceIndex: 2}
    • {isFullscreen: false, isWindowlessApp: false, isMinimized: false, isHidden: false, isTabbed: false, isOnAllSpaces: false, shouldShowTheUser: true, spaceId: 4, spaceIndex: 2}
    • {isFullscreen: false, isWindowlessApp: false, isMinimized: false, isHidden: false, isTabbed: false, isOnAllSpaces: false, shouldShowTheUser: true, spaceId: 4, spaceIndex: 2}
    • {isFullscreen: false, isWindowlessApp: false, isMinimized: false, isHidden: false, isTabbed: false, isOnAllSpaces: false, shouldShowTheUser: false, spaceId: 1, spaceIndex: 1}
    • {isFullscreen: false, isWindowlessApp: false, isMinimized: false, isHidden: false, isTabbed: false, isOnAllSpaces: false, shouldShowTheUser: false, spaceId: 1, spaceIndex: 1}
    • {isFullscreen: false, isWindowlessApp: false, isMinimized: false, isHidden: false, isTabbed: false, isOnAllSpaces: false, shouldShowTheUser: false, spaceId: 5, spaceIndex: 3}
    • {isFullscreen: false, isWindowlessApp: false, isMinimized: false, isHidden: false, isTabbed: true, isOnAllSpaces: false, shouldShowTheUser: false, spaceId: 4, spaceIndex: 2}
    • {isFullscreen: false, isWindowlessApp: false, isMinimized: false, isHidden: false, isTabbed: false, isOnAllSpaces: false, shouldShowTheUser: false, spaceId: 205, spaceIndex: 5}
    • {isFullscreen: false, isWindowlessApp: false, isMinimized: false, isHidden: false, isTabbed: true, isOnAllSpaces: false, shouldShowTheUser: false, spaceId: 205, spaceIndex: 5}
    • {isFullscreen: false, isWindowlessApp: false, isMinimized: false, isHidden: false, isTabbed: true, isOnAllSpaces: false, shouldShowTheUser: false, spaceId: 205, spaceIndex: 5}
    • {isFullscreen: false, isWindowlessApp: false, isMinimized: false, isHidden: false, isTabbed: false, isOnAllSpaces: false, shouldShowTheUser: true, spaceId: 4, spaceIndex: 2}
    • {isFullscreen: false, isWindowlessApp: false, isMinimized: false, isHidden: false, isTabbed: true, isOnAllSpaces: false, shouldShowTheUser: false, spaceId: 4, spaceIndex: 2}
    • {isFullscreen: false, isWindowlessApp: false, isMinimized: false, isHidden: false, isTabbed: false, isOnAllSpaces: false, shouldShowTheUser: false, spaceId: 1, spaceIndex: 1}
    • {isFullscreen: false, isWindowlessApp: false, isMinimized: false, isHidden: false, isTabbed: true, isOnAllSpaces: false, shouldShowTheUser: false, spaceId: 205, spaceIndex: 5}
    • {isFullscreen: false, isWindowlessApp: false, isMinimized: false, isHidden: false, isTabbed: true, isOnAllSpaces: false, shouldShowTheUser: false, spaceId: 1, spaceIndex: 1}
    • {isFullscreen: false, isWindowlessApp: false, isMinimized: false, isHidden: false, isTabbed: true, isOnAllSpaces: false, shouldShowTheUser: false, spaceId: 1, spaceIndex: 1}
    • {isFullscreen: false, isWindowlessApp: false, isMinimized: false, isHidden: false, isTabbed: true, isOnAllSpaces: false, shouldShowTheUser: false, spaceId: 1, spaceIndex: 1}
    • {isFullscreen: false, isWindowlessApp: false, isMinimized: false, isHidden: false, isTabbed: false, isOnAllSpaces: false, shouldShowTheUser: true, spaceId: 4, spaceIndex: 2}
    • {isFullscreen: false, isWindowlessApp: false, isMinimized: false, isHidden: false, isTabbed: false, isOnAllSpaces: false, shouldShowTheUser: true, spaceId: 4, spaceIndex: 2}
    • {isFullscreen: false, isWindowlessApp: false, isMinimized: false, isHidden: false, isTabbed: false, isOnAllSpaces: false, shouldShowTheUser: false, spaceId: 5, spaceIndex: 3}
    • {isFullscreen: false, isWindowlessApp: false, isMinimized: false, isHidden: false, isTabbed: true, isOnAllSpaces: false, shouldShowTheUser: false, spaceId: 5, spaceIndex: 3}
    • {isFullscreen: false, isWindowlessApp: false, isMinimized: false, isHidden: false, isTabbed: false, isOnAllSpaces: false, shouldShowTheUser: false, spaceId: 5, spaceIndex: 3}
    • {isFullscreen: false, isWindowlessApp: false, isMinimized: false, isHidden: false, isTabbed: true, isOnAllSpaces: false, shouldShowTheUser: false, spaceId: 4, spaceIndex: 2}
    • {isFullscreen: false, isWindowlessApp: false, isMinimized: false, isHidden: false, isTabbed: true, isOnAllSpaces: false, shouldShowTheUser: false, spaceId: 4, spaceIndex: 2}
    • {isFullscreen: false, isWindowlessApp: false, isMinimized: false, isHidden: false, isTabbed: true, isOnAllSpaces: false, shouldShowTheUser: false, spaceId: 4, spaceIndex: 2}
    • {isFullscreen: false, isWindowlessApp: false, isMinimized: false, isHidden: false, isTabbed: true, isOnAllSpaces: false, shouldShowTheUser: false, spaceId: 4, spaceIndex: 2}
    • {isFullscreen: false, isWindowlessApp: false, isMinimized: false, isHidden: false, isTabbed: true, isOnAllSpaces: false, shouldShowTheUser: false, spaceId: 4, spaceIndex: 2}
    • {isFullscreen: false, isWindowlessApp: false, isMinimized: false, isHidden: false, isTabbed: true, isOnAllSpaces: false, shouldShowTheUser: false, spaceId: 4, spaceIndex: 2}
    • {isFullscreen: false, isWindowlessApp: false, isMinimized: false, isHidden: false, isTabbed: true, isOnAllSpaces: false, shouldShowTheUser: false, spaceId: 4, spaceIndex: 2}
    • {isFullscreen: false, isWindowlessApp: false, isMinimized: false, isHidden: false, isTabbed: true, isOnAllSpaces: false, shouldShowTheUser: false, spaceId: 4, spaceIndex: 2}
    • {isFullscreen: false, isWindowlessApp: false, isMinimized: false, isHidden: false, isTabbed: true, isOnAllSpaces: false, shouldShowTheUser: false, spaceId: 1, spaceIndex: 1}
    • {isFullscreen: false, isWindowlessApp: false, isMinimized: false, isHidden: false, isTabbed: true, isOnAllSpaces: false, shouldShowTheUser: false, spaceId: 1, spaceIndex: 1}
    • {isFullscreen: false, isWindowlessApp: false, isMinimized: false, isHidden: false, isTabbed: true, isOnAllSpaces: false, shouldShowTheUser: false, spaceId: 5, spaceIndex: 3}
    • {isFullscreen: false, isWindowlessApp: false, isMinimized: false, isHidden: false, isTabbed: true, isOnAllSpaces: false, shouldShowTheUser: false, spaceId: 5, spaceIndex: 3}
    • {isFullscreen: false, isWindowlessApp: false, isMinimized: false, isHidden: false, isTabbed: true, isOnAllSpaces: false, shouldShowTheUser: false, spaceId: 1, spaceIndex: 1}
    • {isFullscreen: false, isWindowlessApp: false, isMinimized: false, isHidden: false, isTabbed: false, isOnAllSpaces: false, shouldShowTheUser: false, spaceId: 5, spaceIndex: 3}
    • {isFullscreen: false, isWindowlessApp: false, isMinimized: false, isHidden: false, isTabbed: true, isOnAllSpaces: false, shouldShowTheUser: false, spaceId: 5, spaceIndex: 3}
    • {isFullscreen: false, isWindowlessApp: false, isMinimized: false, isHidden: false, isTabbed: true, isOnAllSpaces: false, shouldShowTheUser: false, spaceId: 5, spaceIndex: 3}
    • {isFullscreen: false, isWindowlessApp: false, isMinimized: false, isHidden: false, isTabbed: true, isOnAllSpaces: false, shouldShowTheUser: false, spaceId: 5, spaceIndex: 3}
    • {isFullscreen: false, isWindowlessApp: false, isMinimized: false, isHidden: false, isTabbed: true, isOnAllSpaces: false, shouldShowTheUser: false, spaceId: 5, spaceIndex: 3}
    • {isFullscreen: false, isWindowlessApp: false, isMinimized: false, isHidden: false, isTabbed: true, isOnAllSpaces: false, shouldShowTheUser: false, spaceId: 4, spaceIndex: 2}
    • {isFullscreen: false, isWindowlessApp: false, isMinimized: false, isHidden: false, isTabbed: true, isOnAllSpaces: false, shouldShowTheUser: false, spaceId: 5, spaceIndex: 3}
    • {isFullscreen: false, isWindowlessApp: false, isMinimized: false, isHidden: false, isTabbed: true, isOnAllSpaces: false, shouldShowTheUser: false, spaceId: 5, spaceIndex: 3}
    • {isFullscreen: false, isWindowlessApp: false, isMinimized: false, isHidden: false, isTabbed: true, isOnAllSpaces: false, shouldShowTheUser: false, spaceId: 172, spaceIndex: 5}
    • {isFullscreen: false, isWindowlessApp: false, isMinimized: true, isHidden: false, isTabbed: true, isOnAllSpaces: false, shouldShowTheUser: false, spaceId: 5, spaceIndex: 3}
  • OS version: Version 15.1 (Build 24B83)
  • OS architecture: arm64
  • Locale: en_US (fixed en_US)
  • Spaces: 5
  • Dark mode: Dark
  • "Displays have separate Spaces": checked
  • Hardware model: Mac15,11
  • Screens: 2
    • {x: 0.0, y: 0.0, width: 2560.0, height: 1600.0}
    • {x: -1728.0, y: -54.0, width: 1728.0, height: 1117.0}
  • CPU model: Apple M3 Max
  • Memory size: 38.65 GB
  • Active CPU count: 14
  • Current CPU frequency: nil
  • Resource utilization:
    • CPU: 0.0%
    • Memory: 133M-
    • Threads count: 15

@lwouis
Copy link
Owner

lwouis commented Nov 7, 2024

Hi @w2w2k2k2,

I can't reproduce this issue.

Do you use BTT, Karabiner, other apps which could interfere?
Could you please share a video?

Thank you 🙇

@lwouis lwouis added bug Something isn't working unreproducible Need help from the author to reproduce the issue labels Nov 7, 2024
@w2w2k2k2
Copy link

w2w2k2k2 commented Nov 7, 2024

@lwouis Will share a screen recording EOD today.
I do use Karabiner, but the problem persists even after I quite it.

@w2w2k2k2
Copy link

w2w2k2k2 commented Nov 8, 2024

@lwouis Please see the recording (next comment):

  • There are 2 apps opened: Calendar and Chrome. Each with one window
  • 0:00-0:10 I can switch between 2 windows using AltTab
  • 0:11 CMD-W to close the Calendar window. Calendar APP is still open
  • 0:16 Click Calendar APP icon in dock to open the window again
  • 0:18-0:24 Use AltTab to switch between 2 windows. But the Calendar window does not pop to the front

@w2w2k2k2
Copy link

w2w2k2k2 commented Nov 8, 2024

384189638-8489fdaf-ba1c-4d5a-85b1-7d8375957bed.mov

@lwouis
Copy link
Owner

lwouis commented Nov 8, 2024

Thank you for the video.
I did the exact same steps, and window focusing works for me. Maybe the difference is that you're running macOS 15.1 and I'm running 15.0.1. I'll update to 15.1 and try again.

@lwouis
Copy link
Owner

lwouis commented Nov 8, 2024

Retested on 15.1 and still works correctly. I don't have any idea how to debug this further, unfortunately

@lwouis lwouis added the unactionable Further action is not possible due to lack of information or support label Nov 8, 2024
@realCrush
Copy link

realCrush commented Nov 30, 2024

@lwouis I have the exact same issue, I tested several my most used APPs, and separate them into two groups:

have issue:

  • Calendar.app
  • Drafts.app
  • BoltAI.app
  • GoodLinks.app
  • Reeder.app
  • WeChat.app

works fine:

  • Mail.app
  • Gitfox.app

macOS: 15.1.1

After conducting these tests, I discovered that the apps with issues shared the same characteristic: when closed with Command+W and reopened, the app's interface lacked the "rendering" process. It seemed as though the app's main interface was merely "hidden" by Command+W.

Take Apple's native applications as an example: when you close and reopen Calendar.app using command+W, the main interface remains unchanged. In contrast, reopening Mail.app involves a process of loading emails along with corresponding animations. Although I'm not sure what causes this difference, I'm quite certain this discrepancy is the reason for the bug.

@lwouis lwouis changed the title [In-app feedback] Some focused window don't pop to the front Nov 30, 2024
@lwouis lwouis changed the title Some focused window don't pop to the front Some focused windows don't pop to the front Nov 30, 2024
@lwouis
Copy link
Owner

lwouis commented Nov 30, 2024

Perhaps these settings in System Settings > Desktop & Dock influence it?

image
image

@realCrush
Copy link

Perhaps these settings in System Settings > Desktop & Dock influence it?

image image

I tried all four combinations of these two buttons, and they had no effect on the behavior of the apps I listed :(

@lwouis
Copy link
Owner

lwouis commented Nov 30, 2024

@realCrush thank you for your hard work! It's a good thing that these settings are now confirmed to be neutral for this issue

@bangom
Copy link

bangom commented Dec 2, 2024

I have simillar problems, for example today I'm unable to switch to MS Teams app via alt-tab: on top menu bar I see correct App Name (Microsoft Teams), but other app window is in foreground (Word). It seems everythig is working OK for some time after macos reboot... maybe disconnecting and reconnecting from 2nd external monitor (extended desktop) via USB-C and therefore changing windows placement among Desktops is somehow a problem? Regularly there is problem switching between windows among same desktop and also two differend desktops. When I quit alt-tab and use original macos app switcher or mission control focusing the app works.

Note: On a build-in monitor I have only one macos Desktop, on external monitor I use two desktops... so total 3 separate desktops.

MacOS: 15.1.1, latest MS teams.

@pgrekovich
Copy link

pgrekovich commented Dec 7, 2024

I have the same issue after updating to Sequoia; now AltTab is almost unusable for me. I found a kind of workaround using a Hammerspoon script:

hs.application.watcher.new(function(appName, eventType, appObject)
    if eventType == hs.application.watcher.activated then
        local win = appObject:mainWindow()
        if win then
            win:focus()
        end
    end
end):start()

Still not working well enough for me, but maybe it will help someone.

Btw, I guess this issue connected with #3747

@realCrush
Copy link

@lwouis Update: after I uninstall CleanMyMac X on my Mac, everything works fine with the latest AltTab, unbelievable!

@w2w2k2k2
Copy link

w2w2k2k2 commented Dec 9, 2024

I bet some software affected MacOS and triggered this bug.

  • I have 2 macbook with same version of OS (15.1.1). One having the problem, the other does not.
  • But neither of my computers installed CleanMyMac :( Otherwise I would try to uninstall it...

@giorgiPapava
Copy link

I had similar issue at 14, 15.0 15.1

@snajper1677
Copy link

snajper1677 commented Dec 14, 2024

Its happening if you exist app with CMD+W and lunch it again, if you QUIT it and reopen it should work but after you use again CMD+W its happening again

@giorgiPapava
Copy link

Its happening if you exist app with CMD+W and lunch it again, if you QUIT it and reopen it should work but after you use again CMD+W its happening again

Yes it happens on most of the apps.

@snajper1677
Copy link

So is there any possibility of fixing it? or can we do someting make it better?

@tylerlaprade
Copy link

tylerlaprade commented Dec 19, 2024

I can repro this 100% of the time when attempting to switch to a full-screen Zoom meeting in which somebody else is screen-sharing.

@realCrush
Copy link

Sad news: I don't know the reason, but the bug appeared AGAIN and I didn't install CleanMyMac
AltTab version: latest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working unactionable Further action is not possible due to lack of information or support unreproducible Need help from the author to reproduce the issue
Projects
None yet
Development

No branches or pull requests

9 participants