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

Intellij IDEA is missing from alt tab #824

Closed
llowinge opened this issue Feb 16, 2021 · 16 comments
Closed

Intellij IDEA is missing from alt tab #824

llowinge opened this issue Feb 16, 2021 · 16 comments
Labels
bug Something isn't working unreproducible Need help from the author to reproduce the issue

Comments

@llowinge
Copy link

Describe the bug

Intellij IDEA closed; altab closed. First i open alttab, then i open intellij idea and it is not visible in alttab.

Screenshots / video
Screenshot 2021-02-16 at 09 35 53

@llowinge llowinge added the bug Something isn't working label Feb 16, 2021
@llowinge
Copy link
Author

Interesting fact is that if i open new window/workspace of Intellij IDEA, then i can see it in alttab, but the first window is still missing.

@lwouis
Copy link
Owner

lwouis commented Feb 16, 2021

Hi @llowinge! Thanks for sharing this issue!

What's your version of macOS? of AltTab? of Intellij (stable, EAP)?

I use Jetbrains products. I actually develop AltTab on AppCode. I've never experienced this issue you describe 😅

@lwouis lwouis added the unreproducible Need help from the author to reproduce the issue label Feb 16, 2021
@llowinge
Copy link
Author

Hi @lwouis, version of macOS: 10.15.7, AltTab: Version 6.15.1, Intellij IDEA: 2020.3.1 (Ultimate Edition).

@lwouis
Copy link
Owner

lwouis commented Feb 17, 2021

I'm on the same macOS and AltTab versions. I'm using Intellij IDEA Ultimate as well, daily. It's 2020.3.2 for me. I can't reproduce this issue.

How exactly do you launch IntelliJ? Through the Jetbrains Toolbox? Through the .app? Through the idea cli? Another way?

When it launches, does it open the last project automatically, or do you see the project selector UI?

A video of the issue may help here to see something you're doing that I'm not for instance 👍

@llowinge
Copy link
Author

Hi, i'm attaching the video.

bug_alttab_small.mov

@lwouis
Copy link
Owner

lwouis commented Feb 17, 2021

Oh! The first window is fullscreen'ed automatically! That's an issue I've dealt with a lot in the past. Fullscreen windows are terrible to handle because they are on another Space. There is no public API to handle windows on other Spaces, so I use retro-engineered private APIs to do it. It's a lot of workarounds to get AltTab to handle these cases.

I'll see if I can reproduce. Most likely if the window wasn't fullscreen'ed when you launch IntelliJ, the issue wouldn't happen.

@llowinge
Copy link
Author

@lwouis Thanks for heads up ! It looks you are right, because now it was working OK, but i had two windows opened (one of them went to fullscreen immediately and the second sticked on "main" space) and both windows appeared in AltTab. Then i closed the one which didn't go to fullscreen and closed whole IDEA, restarted alttab, run again IDEA and one window went to fullscreen and it was missing in alttab.

@lwouis
Copy link
Owner

lwouis commented Mar 8, 2021

I'm able to consistently reproduce this issue. Here are the steps:

  • Open some project in IntelliJ (I think version doesn't matter)
  • Fullscreen the window
  • Quit IntelliJ
  • Start AltTab
  • Start IntelliJ
  • IntelliJ goes through a sequence of: loading screen window, creates project window, fullscreens it
  • AltTab doesn't list the fullscreen'ed window at this point

The issue is that AltTab tries to detect if the new window is tabbed during the OS animation of Spaces changing and the window going fullscreen. This results in AltTab detecting that the window is tabbed, and not showing it.

I've developed a workaround using a new private API called SLSManagedDisplayIsAnimating and retrying until the display has stopped animating. It is then safe to check if the window is a tab.

@llowinge could you please try out this local build with the fix, and share here if it's working for you?

@llowinge
Copy link
Author

llowinge commented Mar 9, 2021

Hi @lwouis , finally i've found some time to test it, but it doesn't work even with the local build :( I did the same steps as you've described. But unfortunately i can't see the Intellij in the AltTab when in the fullscreen.

@lwouis
Copy link
Owner

lwouis commented Mar 9, 2021

@llowinge oh! I'm surprised it doesn't fix it for you. For me if i turn the fix on, i see it, and off i don't see it.

Could you may be share a video of the issue? Maybe there is something else at play in your case that i could spot by checking it in video. Please show your preferences for AltTab also 👍

@lwouis lwouis closed this as completed in 62b43f2 Mar 13, 2021
lwouis pushed a commit that referenced this issue Mar 13, 2021
# [6.18.0](v6.17.0...v6.18.0) (2021-03-13)

### Bug Fixes

* more robust handling of custom shortcuts ([339aeaa](339aeaa))
* windows launched already fullscreen sometimes didn't show ([#824](#824)) ([62b43f2](62b43f2))

### Features

* avoid disabling native command-tab (closes [#834](#834)) ([fb51c5d](fb51c5d))
* update contributors list ([5c7aa38](5c7aa38))
@stevetodd
Copy link

stevetodd commented Mar 29, 2021

FYI, I also still experience this issue.

AltTab: 6.18.1
IntelliJ IDEA: 2020.3.3

Same behavior. If IntelliJ was quit in fullscreen and relaunched, it doesn't show up in AltTab. If I take it out of fullscreen, quit, and launch, it does show up.

image

lwouis pushed a commit that referenced this issue Apr 14, 2021
# [6.19.0](v6.18.1...v6.19.0) (2021-04-14)

### Bug Fixes

* correct Wikipedia link ([5a41561](5a41561))
* intellij fullscreen windows sometimes not showing ([#824](#824)) ([4dcb6bb](4dcb6bb))
* rare crash when the ui was kept open during space transition ([e869900](e869900))

### Features

* added NICE DCV to the don't show list ([3a98628](3a98628))
* update german, russian, swedish localization ([6f1a27a](6f1a27a))
* update korean, polish, and brazilian localizations ([5bc8f82](5bc8f82))
@dvcrn
Copy link

dvcrn commented Nov 24, 2021

This is closed already but I still have repeatedly the issue that jetbrains stuff just vanishes from the alt-tab. Not doing any fullscreen settings here and keep it in a normal window all the time.

Only after restarting IDEA, it shows back up

Screen Shot 2021-11-24 at 11 09 23

Screen Shot 2021-11-24 at 11 09 24

IDEA Is installed through toolbox

@lwouis
Copy link
Owner

lwouis commented Nov 24, 2021

@dvcrn could you please open a new ticket, and use the Bug template to provide nice steps to reproduce, video of the issue, etc? The template will guide you in providing useful info so that we can repro and investigate your issue easier 👍

@dvcrn
Copy link

dvcrn commented Nov 24, 2021

Yes sure! I created a new issue. Sadly I still haven't figured out how to reproduce this besides just using the apps for a longer period of time...

@Akazm
Copy link

Akazm commented Mar 25, 2022

Yes sure! I created a new issue. Sadly I still haven't figured out how to reproduce this besides just using the apps for a longer period of time...

That's even more confusing since I'm constantly facing this issue. Like - Neither WebStorm nor IntelliJ appear.

Damn, wish I'd had time to dive into this.

@HYDROGRID
Copy link

HYDROGRID commented Oct 15, 2022

Same problem. Happens regularly that IntelliJ (and also it's related windows) are missing on AltTab. Restarting IntelliJ can help. But also: Starting Intellij (usually I don't use it in full screen mode) even though AltTab is running can still result in this problem.

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

6 participants