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

[Bug]: Transparent window and shadow is shown on load with frame: false #30022

Closed
3 tasks done
facuparedes opened this issue Jul 6, 2021 · 9 comments
Closed
3 tasks done

Comments

@facuparedes
Copy link

facuparedes commented Jul 6, 2021

Preflight Checklist

Electron Version

13.1.6

What operating system are you using?

Windows

Operating System Version

Windows 11 build 22000.51

What arch are you using?

x64

Last Known Working Electron version

No response

Expected Behavior

Show just a white (or a custom background color) window. Like this initial screen:

image

The screenshot was taken without frame: false:

const { app, BrowserWindow } = require("electron");

function createWindow() {
  const win = new BrowserWindow({
    width: 800,
    height: 600,
  });

  win.loadFile("index.html");
}

app.whenReady().then(() => {
  createWindow();
});

app.on("window-all-closed", function () {
  app.quit();
});

Actual Behavior

A transparent window with a shadow is shown when a BrowserWindow is created with frame: false. After a while, html is loaded.

image

Testcase Gist URL

https://gist.github.com/facuparedes/0ad564fd2475074742faed478b7da3a1

Additional Information

No response

@Levminer
Copy link

Levminer commented Jul 7, 2021

Yes I can confirm this bug too in my app on Windows 11 (https://github.com/Levminer/authme)

	window_splash = new BrowserWindow({
		width: 500,
		height: 550,
		transparent: true,
		frame: false,
		alwaysOnTop: true,
		resizable: false,
		webPreferences: {
			nodeIntegration: true,
			enableRemoteModule: true,
			contextIsolation: false,
		},
	})

And yes #30024 workaround not fixing it.

The frames show up after there is no other window in front of it. If you maxzime a window in front of it it vanishes and after minimzing all windows is re appers.
image

@Levminer
Copy link

Levminer commented Jul 9, 2021

Hey @facuparedes

EDIT: Now after a restart I got this bug again, no idea what is happening.

I think this was a problem with Windows 11, not Electron. After updating to the latest build (22000.65) I can't reprodue this issue. I think this is closable.

@facuparedes
Copy link
Author

Hey @Levminer
I tried this bug and #30024 in latest Windows 10 and Windows 11 (22000.65), and both have the issues.

#30024 was confirmed by @erickzhao on Discord

I think both issues are related

@Levminer
Copy link

Levminer commented Jul 9, 2021

@facuparedes Okay I think after the pc goes to sleep this bug vanishes. Very strange.

@geroale
Copy link

geroale commented Nov 27, 2021

Same issue here

@github-actions
Copy link
Contributor

github-actions bot commented Oct 5, 2022

This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment!

@github-actions github-actions bot added the stale label Oct 5, 2022
@pushkin-
Copy link

repros in Electron 21. Wonder if this PR helps with this

@github-actions github-actions bot removed the stale label Oct 14, 2022
@github-actions
Copy link
Contributor

This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment!

@github-actions github-actions bot added the stale label Jan 13, 2023
@github-actions
Copy link
Contributor

This issue has been closed due to inactivity, and will not be monitored. If this is a bug and you can reproduce this issue on a supported version of Electron please open a new issue and include instructions for reproducing the issue.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Feb 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants