-
-
Notifications
You must be signed in to change notification settings - Fork 57
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
Alt-tabbing sometimes creates duplicate "ghost" windows #95
Comments
Hey, which version of electron are you using to reproduce this? |
@ceifa The version I have in |
The Maybe this is not a issue anymore on the newest versions... I will try remove it later. |
I've got an interesting problem and I am 95% sure it's related to the library.
When I use the library, using Alt+Tab on Win 11 sometimes causes a duplicate ghost window to appear:
![image](https://private-user-images.githubusercontent.com/4552000/240357080-ff9f1a98-eb35-4ced-b386-78f87f88887c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTg4NTI5ODMsIm5iZiI6MTcxODg1MjY4MywicGF0aCI6Ii80NTUyMDAwLzI0MDM1NzA4MC1mZjlmMWE5OC1lYjM1LTRjZWQtYjM4Ni03OGY4N2Y4ODg4N2MucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDYyMCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA2MjBUMDMwNDQzWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ODQyYzg0MTRjMWIzZTM4MWVmNWI2MDQ1YzJlMmYwODFhYzUyODk2ZGVkMGU0YTIxNjFkZmJjODc5YmI4N2I3ZiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.HmjC_lccBINskk71BUlAF8SbECBOwEZeKgU-CBAtQik)
There are three proper windows for Trans Neuronica here, even though it really is only a single one. Closing it will cause blank pseudo-apps to remain in there, same as you can see in the second row. The issue is very finicky to replicate though so it's possible that I was just lucky and it has nothing to do with it. Nevertheless, here are results from some of my attempts:
electronEnableSteamOverlay(false)
Successfully duplicated a ghost after a few dozen of alt tabs
electronEnableSteamOverlay(true)
Successfully duplicated a ghost after a few alt tabs
Comment out both
appendSwitch()
And I commented out the following two lines in
index.js
:Failed to duplicate a ghost after dozens of tries.
But also it's impossible to show the steam overlay.
Comment out
in-process-gpu
And I commented out one of the lines in
index.js
:Duplicated a ghost after a few tries.
But also it's impossible to show the steam overlay.
Comment out
disable-direct-composition
And I commented out one of the lines in
index.js
:Failed to duplicate a ghost after dozens of alt tabs.
And steam overlay seems to work correctly.
Summary
It seems that
disable-direct-composition
causes the issue and doesn't seem to be required at a first glance. I am sure that command wasn't added for no reason, so it would be great if:disable-direct-composition
from being appended.I'm happy to add a PR for the latter but the former will require someone who knows the whys.
The text was updated successfully, but these errors were encountered: