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
Wayland drop shadow flickering #19699
Comments
|
@sofianguy I don't really whether this is related to the issue above but after I take a screenshot using GNOME Screenshot on Wayland from a frameless window Electron/Chromium go crazy: There are currently only two options: |
|
Still an issue with Electron 7.0.1 and if I don't disable GPU on Wayland an error is shown that can be reproduced with Electron binaries and the setup above. |
|
I think the bug is caused by chromium code implementation. The bug exists in Chromium, Electron and NWJS. Any NWJS window flickering while resizing under GNOME on Wayland. And if we open any non-main window in Chromium (such as task manager, or dev-tools), and resizing it, the shadow flickering, too. I have reported the bug on chromium. https://bugs.chromium.org/p/chromium/issues/detail?id=1048968 |
|
The same bug on Chromium is disappeared after upgrade GNOME to 3.36.0. and Electron is also OK after upgrades |
|
The Electron version reported on this issue is no longer supported. See our supported versions documentation. If this is still reproducible on a supported version, please open a new issue with any other new information that a maintainer should know. Thank you for taking the time to report this issue and helping to make Electron better! Your help is appreciated. |

Preflight Checklist
Issue Details
Expected Behavior
No drop shadow flickering and a small shadow when the window is not focused like in Electron v5.
Actual Behavior
A frameless window on (GNOME) Wayland has no "small" shadow if it's not focused and the drop shadow begins to flicker if the window is focused and you move the cursor outside the window over other elements like buttons, lists or other native elements that are behind our frameless window (maximize Firefox and hover over Firefox tabs, native application buttons etc while the frameless window is focused in front of the other window). Another option is to hover over/click on elements inside the frameless window like buttons, links or menus. You can also reproduce this issue if you resize the frameless window.
To Reproduce
Patch
electron-api-demosvianpm run startand skip firstGet Started PageAdditional Information
This only occurs on Linux with Wayland but not X11. When using
app.disableHardwareAcceleration()this issue doesn't occur.The text was updated successfully, but these errors were encountered: