-
Notifications
You must be signed in to change notification settings - Fork 15.7k
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
Fullscreen is not working on Linux with focusable: false #11632
Comments
Any thoughts about fixing fullscreen issue? |
Tested on Arch linux with the same results using Electron 2.0.3 and Electron 3.0.0-beta.1 Steps to reproduce: |
The behavior is the same with |
Thank you for taking the time to report this issue and helping to make Electron better. The version of Electron you reported this on has been superseded by newer releases. If you're still experiencing this issue in Electron v4.2.x or later, please add a comment specifying the version you're testing with and any other new information that a maintainer trying to reproduce the issue should know. I'm setting the Thanks in advance! Your help is appreciated. |
still issue in electron 6. |
@hovancik using your test app, I was able to create a workaround for this (NB: I can't tell if it's an electron bug or a limitation of Linux window management). // additional APIs
const screen = electron.screen
const os = require('os') ... if (os.platform() != 'linux') {
mainWindow = new BrowserWindow({ width: 800, height: 600, fullscreen: true, focusable: false })
}
else {
let display = screen.getPrimaryDisplay()
mainWindow = new BrowserWindow({
x: display.bounds.x,
y: display.bounds.y,
width: display.size.width,
height: display.size.height,
fullscreen: true,
focusable: false
})
} As best I can tell, this achieves the desired behaviour. On my system (Xfce4), all panels were blocked and unclickable on the primary display until the app was terminated. I did upgrade to electron 8.2.3, but hopefully earlier versions work the same way. |
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. |
Thanks to the friendly bot, I had to recreate this issue: #28130 Please subscribe there if you want to get updates. |
Expected behavior
Browser window is fullscreen
Actual behavior
Browser window is not fullscreen
How to reproduce
The text was updated successfully, but these errors were encountered: