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

Few apps with no windows wont show up in switcher even if running in bg #3673

Closed
ishaanrathodd opened this issue Oct 11, 2024 · 25 comments
Closed
Labels
bug Something isn't working unreproducible Need help from the author to reproduce the issue

Comments

@ishaanrathodd
Copy link

Describe the bug

Like other apps show up in switcher with a dash below them when no app window is open if u turn off the "Hide apps with no open window" feature, discord doesnt show up in switcher when no window from discord is open!

Steps to reproduce the bug

Turn off "Hide apps with no open window" feature and then just close all discord windows. The app does NOT show in the switcher whereas other app does show with no app windows open.

Your environment

  • AltTab version: 7.0.1
  • macOS version: 15.1 Beta (24B5070a)
@ishaanrathodd ishaanrathodd added the bug Something isn't working label Oct 11, 2024
@lwouis
Copy link
Owner

lwouis commented Oct 11, 2024

Hi,

Discord is not a native macOS app. It's a cross-platform, Electron app. They do things a bit differently. When you close the last window, it actually hides the app. The app is still open, and the window is still open. The app is just hidden which hides all its windows. You'll find the window in the switcher. You won't find it on the right side since it's an app with a window. Just a hidden app.

Thank you 👍

@lwouis lwouis closed this as completed Oct 11, 2024
@ishaanrathodd
Copy link
Author

ishaanrathodd commented Oct 12, 2024

Hi,

Discord is not a native macOS app. It's a cross-platform, Electron app. They do things a bit differently. When you close the last window, it actually hides the app. The app is still open, and the window is still open. The app is just hidden which hides all its windows. You'll find the window in the switcher. You won't find it on the right side since it's an app with a window. Just a hidden app.

Thank you 👍

yea but when you look at vs code or notion, those apps even if closed all windows of it(but still running) wont show up in switcher at all, even if you turn on show hidden apps(though discord does). Though i think this behavior is more of a bug and electron apps like discord is more intentional.

Screen.Recording.2024-10-12.at.1.19.58.PM.1.mov

@ishaanrathodd ishaanrathodd changed the title Discord doesn't show when no app window open Few apps with no windows wont show up in switcher even if running in bg Oct 12, 2024
@ishaanrathodd
Copy link
Author

@lwouis please do look into this bug, i was facing the same issue before too even with discord and other apps too but these apps not showing up is definitely a bug

@ishaanrathodd
Copy link
Author

I have been testing this bug on prev versions too and i can confirm even 6.73.0 has this bug and this kind of completely breaks the use of shortcut functionality in the switcher too. Pressing "W" to close window of an app in switcher closes the window but the switcher still shows that the window is open. Too many bugs when "Hide apps when no open window" is turned off.

@lwouis
Copy link
Owner

lwouis commented Oct 12, 2024

Hi @ishaanrathodd,

I think I must have explained it poorly.

Pressing "W" to close window of an app in switcher closes the window but the switcher still shows that the window is open.

This is what Discord wants. They implemented that when you click on the (x) icon, or send a shortcut to close the window, instead of closing it like other apps, they keep it open, and hide the entire app. So visually, you see the window go away. However, it's still very much open. You can right-click on the Dock, and see that the app is still open and that the window is still open.

AltTab is only reporting what's going on. It's not responsible for that UX decision from Discord. This issue has been discussed many times before, so I'm familiar with the situation. It's 100% Discord doing unintuitive things, and users getting confused. Nothing AltTab can change. Please address your feedback to the Discord Support.

Thank you 🙇

@ishaanrathodd
Copy link
Author

Hi @ishaanrathodd,

I think I must have explained it poorly.

Pressing "W" to close window of an app in switcher closes the window but the switcher still shows that the window is open.

This is what Discord wants. They implemented that when you click on the (x) icon, or send a shortcut to close the window, instead of closing it like other apps, they keep it open, and hide the entire app. So visually, you see the window go away. However, it's still very much open. You can right-click on the Dock, and see that the app is still open and that the window is still open.

AltTab is only reporting what's going on. It's not responsible for that UX decision from Discord. This issue has been discussed many times before, so I'm familiar with the situation. It's 100% Discord doing unintuitive things, and users getting confused. Nothing AltTab can change. Please address your feedback to the Discord Support.

Thank you 🙇

I understand that. Please see the video i attached, im not talking about discord at all, im talking about apps like notion and vscode. I understand what you say about discord, but im sure vscode is not an electron app, neither is it shown as a hidden app in the switcher app when no windows are open. I hope you understand what im saying

@lwouis
Copy link
Owner

lwouis commented Oct 13, 2024

Hi @ishaanrathodd,

I checked the video, and indeed some apps have no windows showing. My best guess is that you're seeing the symptoms of #1324. I'm guessing that the missing windows are not on the active Space, and that you've not visited their Space since AltTab was opened.

Thank you 🙇

@ishaanrathodd
Copy link
Author

Hi @ishaanrathodd,

I checked the video, and indeed some apps have no windows showing. My best guess is that you're seeing the symptoms of #1324. I'm guessing that the missing windows are not on the active Space, and that you've not visited their Space since AltTab was opened.

Thank you 🙇

Soooo, the apps that are not showing up in the switcher have no open windows, and the issue u referenced, is there any possible fix for this? Coz unfortunately this makes it very difficult to use the switcher 😔 Btw theres an app called 1Piece which is similar to alttab and it shows apps from all spaces. The only feature it doesnt have is displaying apps with no open windows. Maybe if that app has this functionality possible, it IS possible to integrate that in here too? unfortunately that app is not open source and i like to support open source apps so my primary switcher is alttab.

@lwouis
Copy link
Owner

lwouis commented Oct 13, 2024

Could you please share a screenshot of your settings in Preferences > Appearance > Customize Titles Style...?

@ishaanrathodd
Copy link
Author

Could you please share a screenshot of your settings in Preferences > Appearance > Customize Titles Style...?

image

@ishaanrathodd
Copy link
Author

Could you please share a screenshot of your settings in Preferences > Appearance > Customize Titles Style...?

let me also tell you, this is not a consistent bug, the apps appear half the times and half the times it doesnt

@lwouis
Copy link
Owner

lwouis commented Oct 13, 2024

Thank you. It's very surprising

Could you please show me a screenshot of these System Settings:

image

In the case in your video, could you show what shows when you right-click the VSCode icon in the Dock? Also, is it listed in Activity Monitor?

Thank you 🙇

@ishaanrathodd
Copy link
Author

ishaanrathodd commented Oct 13, 2024

Thank you. It's very surprising

Could you please show me a screenshot of these System Settings:

image In the case in your video, could you show what shows when you right-click the VSCode icon in the Dock? Also, is it listed in Activity Monitor?

Thank you 🙇

image image image

Yes VS Code is listed in the acrivity monitor even when no windows are open

@lwouis lwouis reopened this Oct 13, 2024
@lwouis
Copy link
Owner

lwouis commented Oct 13, 2024

Thank you for sharing these!

From all the data, I can't make sense of what's happening. This functionnality hasn't been touched in 4 years. It's pretty solid. I don't see why it works for everyone except just you. I don't have a clue what could be the root cause.

Could you please run this in Terminal.app and share the output?

defaults read com.lwouis.alt-tab-macos

Also could you please click on AltTab icon at the top, and Send Feedback then fill the form and send it. This way we can have the Debug Profile and look at it.

Thank you 🙇

@lwouis lwouis added the unreproducible Need help from the author to reproduce the issue label Oct 13, 2024
@ishaanrathodd
Copy link
Author

ishaanrathodd commented Oct 14, 2024

Thank you for sharing these!

From all the data, I can't make sense of what's happening. This functionnality hasn't been touched in 4 years. It's pretty solid. I don't see why it works for everyone except just you. I don't have a clue what could be the root cause.

Could you please run this in Terminal.app and share the output?

defaults read com.lwouis.alt-tab-macos

Also could you please click on AltTab icon at the top, and Send Feedback then fill the form and send it. This way we can have the Debug Profile and look at it.

Thank you 🙇

"
{
MSAppCenter310AppCenterUserDefaultsMigratedKey = 1;
MSAppCenter310CrashesUserDefaultsMigratedKey = 1;
MSAppCenterInstallId = "CFA0BBE1-B1D7-4F52-83DF-938A48359934";
MSAppCenterNetworkRequestsAllowed = 0;
MSAppCenterPastDevices = {length = 1146, bytes = 0x62706c69 73743030 d4010203 04050607 ... 00000000 00000386 };
MSAppCenterSessionIdHistory = {length = 460, bytes = 0x62706c69 73743030 d4010203 04050607 ... 00000000 00000156 };
MSAppCenterUserIdHistory = {length = 455, bytes = 0x62706c69 73743030 d4010203 04050607 ... 00000000 00000151 };
"NSStatusItem Visible Item-0" = 0;
"NSWindow Frame SUStatusFrame" = "655 700 400 135 0 0 1710 1069 ";
"NSWindow Frame SUUpdateAlert" = "494 412 620 398 0 0 1710 1069 ";
SUAutomaticallyUpdate = 0;
SUEnableAutomaticChecks = 1;
SUHasLaunchedBefore = 1;
SULastCheckTime = "2024-10-11 13:22:22 +0000";
SUUpdateGroupIdentifier = 3267160804;
SUUpdateRelaunchingMarker = 0;
appearanceSize = 2;
appearanceStyle = 2;
appsToShow2 = 0;
appsToShow3 = 0;
blacklist = "[{\"ignore\":\"0\",\"bundleIdentifier\":\"com.McAfee.McAfeeSafariHost\",\"hide\":\"1\"},{\"hide\":\"0\",\"ignore\":\"0\",\"bundleIdentifier\":\"com.apple.finder\"},{\"ignore\":\"2\",\"bundleIdentifier\":\"com.microsoft.rdc.macos\",\"hide\":\"0\"},{\"ignore\":\"2\",\"bundleIdentifier\":\"com.teamviewer.TeamViewer\",\"hide\":\"0\"},{\"bundleIdentifier\":\"org.virtualbox.app.VirtualBoxVM\",\"hide\":\"0\",\"ignore\":\"2\"},{\"ignore\":\"2\",\"bundleIdentifier\":\"com.parallels.\",\"hide\":\"0\"},{\"ignore\":\"2\",\"hide\":\"0\",\"bundleIdentifier\":\"com.citrix.XenAppViewer\"},{\"hide\":\"0\",\"ignore\":\"2\",\"bundleIdentifier\":\"com.citrix.receiver.icaviewer.mac\"},{\"hide\":\"0\",\"bundleIdentifier\":\"com.nicesoftware.dcvviewer\",\"ignore\":\"2\"},{\"ignore\":\"2\",\"bundleIdentifier\":\"com.vmware.fusion\",\"hide\":\"0\"},{\"bundleIdentifier\":\"com.apple.ScreenSharing\",\"hide\":\"0\",\"ignore\":\"2\"},{\"ignore\":\"2\",\"bundleIdentifier\":\"com.utmapp.UTM\",\"hide\":\"0\"}]";
cursorFollowFocusEnabled = true;
fadeOutAnimation = false;
focusWindowShortcut = "\U21a9";
fontHeight = 18;
hideAppBadges = true;
hideColoredCircles = true;
hideStatusIcons = false;
hideThumbnails = true;
hideWindowlessApps = true;
holdShortcut = "\U2325";
holdShortcut2 = "\U2325";
iconSize = 37;
maxHeightOnScreen = 100;
maxWidthOnScreen = 47;
menubarIcon = 3;
mouseHoverEnabled = true;
nextWindowShortcut = "";
nextWindowShortcut2 = "";
nextWindowShortcut3 = "";
preferencesVersion = "7.0.1";
previewFocusedWindow = false;
screensToShow = 0;
shortcutStyle = 1;
shortcutStyle2 = 0;
showAppsOrWindows = 1;
showHiddenWindows = 1;
showHiddenWindows2 = 2;
showHiddenWindows3 = 0;
showMinimizedWindows = 1;
showMinimizedWindows2 = 2;
showMinimizedWindows3 = 0;
showTabsAsWindows = false;
startAtLogin = false;
titleTruncation = 1;
updatePolicy = 1;
windowDisplayDelay = 0;
windowMaxWidthInRow = 100;
windowMinWidthInRow = 78;
}
"

output of terminal. Also sent you the debug profile.

@lwouis
Copy link
Owner

lwouis commented Oct 15, 2024

Thank you for sharing this. In the preferences, I see hideWindowlessApps = true which explains instantly why you don't see the windowsless apps.

I think you can find your issue by toggling the setting here on then off again:

image

Now the golden question is: how can this setting by true, but the UI show false

The only scenario I can imagine is that you've updated the preferences with something like defaults write [...] or by replacing the preferences file while AltTab was already running. Because if you were to restart AltTab, it would read the value in the preferences, and the toggle would have been blue.

Do you remember doing anything like that?

Is you issue fixed now with a restart of AltTab or a toggling on then off?

Thank you 🙇

@ishaanrathodd
Copy link
Author

@lwouis I turned on "Hide apps with no open window" and then off again and restarted the app but still the problem exists.

Screen.Recording.2024-10-15.at.11.22.07.PM.mp4

As you can see in the video, i hover over apple mail app, press "W" to close the window and the app is open with no windows, but the apple mail app doesnt show up in the switcher whilst other apps with no windows does show. If i restart alttab again the switcher WILL show the apple mail in the switcher with no windows, but then again if i close an app window the app will disappear from switcher. The switcher essentially isnt refreshing apps with no windows until i restart alttab. Also, i do not have altered anything about the app or through terminal and im sure about it. Thank you for looking into this problem but i still cant seem to fix it.

@lwouis
Copy link
Owner

lwouis commented Oct 15, 2024

What's the current value of defaults read com.lwouis.alt-tab-macos hideWindowlessApps?

I'm very surprised that when you clicked w, we still see the entry in AltTab for the window. Even though it's closed. that's not normal. The symptoms ressemble a bit #3589. However, after you close the switcher, and reopen it, the window is gone. Very weird stuff. I don't know how to explain it. I still don't know how you got the preference desync'd with the app UI.

@Allsochen any idea what could cause these things?

@ishaanrathodd
Copy link
Author

defaults read com.lwouis.alt-tab-macos hideWindowlessApps

I have for now turned on the "Hide apps with no open window" feature because its very inconsistent, after turning it on, defaults read com.lwouis.alt-tab-macos hideWindowlessApps = true

Yes after i click "W" we still see the entry in AltTab for the window, however if i click "Q", the app quits and the entry disappears before closing the switcher. The problem is only with "W".

@lwouis
Copy link
Owner

lwouis commented Oct 15, 2024

I have for now turned on the "Hide apps with no open window" feature

If you turn it ON, it will hide the items you want to see. You need to turn it OFF. The value should be false.

Could you please try that and see if it works for you?

Thank you

@ishaanrathodd
Copy link
Author

I have for now turned on the "Hide apps with no open window" feature

If you turn it ON, it will hide the items you want to see. You need to turn it OFF. The value should be false.

Could you please try that and see if it works for you?

Thank you

Yes it was turned off, but because the behaviour is inconsistent for apps, i turned it on. If i turn it off, the value is false in terminal, so the settings are working perfectly.

@lwouis
Copy link
Owner

lwouis commented Oct 15, 2024

Great! 🎉

@lwouis lwouis closed this as completed Oct 15, 2024
@ishaanrathodd
Copy link
Author

Great! 🎉

ehh lol the settings are working perfectly but the functionality is not being reflected in the switcher its buggy like i showed u in the video

@lwouis
Copy link
Owner

lwouis commented Oct 15, 2024

I'm sorry I couldn't follow. I thought the setting was true in your video?

Could you please make the setting be false, then see if it works? If it doesn't could you please take a video showing the value of the setting in-app, in the Terminal, and showing the behavior?

Also, could you please check in Activity Monitor if you have only 1 instance of AltTab running? I'm thinking that this could explain the setting desync issue, if one app has a setting and the other another.

Thank you

@lwouis lwouis reopened this Oct 15, 2024
@ishaanrathodd
Copy link
Author

Okay, there are too many problems but for now, i completely deleted the app and reinstalled the app again and ig rn things seem to work better than before. You can close the issue for now! Thank you!

@lwouis lwouis closed this as completed Oct 16, 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 unreproducible Need help from the author to reproduce the issue
Projects
None yet
Development

No branches or pull requests

2 participants