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

Overlay shows as white in electron #116

Open
edbentley opened this issue Aug 20, 2023 · 6 comments
Open

Overlay shows as white in electron #116

edbentley opened this issue Aug 20, 2023 · 6 comments

Comments

@edbentley
Copy link

Electron version: 25.3.0

When I call electronEnableSteamOverlay and launch my game, an overlay appears but it is a white rectangle. Pressing shift+tab to open the overlay just presents a white screen. If I resize my game window manually, then the overlay renders properly.

Based on these notes, this appears to be exactly what the --disable-direct-composition flag fixes, which is added in electronEnableSteamOverlay:

electron.app.commandLine.appendSwitch('disable-direct-composition')

But it doesn't seem to be working for me? Is anyone else getting this issue now?

@dfabulich
Copy link
Contributor

This bug report doesn't include enough information to reproduce your issue.

Start by testing the example Electron project, checked into this repository, in the test/electron directory.

The easiest way to test it is to copy the entire test/electron folder to a separate directory outside the repository, and edit package.json, changing the line "steamworks.js": "../.." to "steamworks.js": "0.3.0". Run npm install in the electron folder, and then launch the Steam client app, and then npm start.

(Note that you do have to launch the Steam client app yourself manually before launching the Electron app; the Steamworks API is designed to communicate with the Steam client app process to do its work.)

If the example works, then that indicates that the issue is in your project. To reproduce the issue, you'd need to publish your own sample project that we could see. It would also help if you mentioned which operating system/version you're on, and whether you're on an ARM or x64 CPU.

@Watunder
Copy link

I believe this issue is related to electron, everything is fine in version 24.x.x

@inkasadev
Copy link

Electron version: 25.3.0

When I call electronEnableSteamOverlay and launch my game, an overlay appears but it is a white rectangle. Pressing shift+tab to open the overlay just presents a white screen. If I resize my game window manually, then the overlay renders properly.

Based on these notes, this appears to be exactly what the --disable-direct-composition flag fixes, which is added in electronEnableSteamOverlay:

electron.app.commandLine.appendSwitch('disable-direct-composition')

But it doesn't seem to be working for me? Is anyone else getting this issue now?

Thanks @Watunder! I had the same problem and downgrade to v24.8.1 solved the problem. 🙂

@dfabulich
Copy link
Contributor

None of y'all mentioned anything about what operating system/version/architecture you're on. We actually do need that to reproduce any issues you're facing.

@inkasadev
Copy link

inkasadev commented Sep 8, 2023

None of y'all mentioned anything about what operating system/version/architecture you're on. We actually do need that to reproduce any issues you're facing.

Sorry...

OS: Windows 10
Electron: 25.4.0 (now 24.8.1, after @Watunder suggestion)
Steamworks.js: 0.3.1

@hulifu
Copy link

hulifu commented Sep 20, 2023

the same issue

OS: Windows 10
Electron: 26.2.1
Electron: 25.4.0
Steamworks.js: 0.3.1

Electron v24.8.1 can't see steam page

Start by testing the example Electron project, checked into this repository, in the test/electron directory.

Shift+Tab can not open steam page also no see bottom-right steam pop page

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants