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

Fullscreen is not working on Linux with focusable: false #11632

Closed
hovancik opened this issue Jan 13, 2018 · 8 comments
Closed

Fullscreen is not working on Linux with focusable: false #11632

hovancik opened this issue Jan 13, 2018 · 8 comments

Comments

@hovancik
Copy link

  • Electron version: 1.7.10
  • Operating system: Linux (Debian, Elementary OS)

Expected behavior

Browser window is fullscreen

Actual behavior

Browser window is not fullscreen

How to reproduce

# Clone this repository
git clone https://github.com/hovancik/electron-fullscreen-focusable.git
# Go into the repository
cd electron-fullscreen-focusable
# Install dependencies
npm install
# Run the app
npm start

bug

@spotman
Copy link

spotman commented May 22, 2018

Any thoughts about fixing fullscreen issue?

@lundibundi
Copy link

Tested on Arch linux with the same results using Electron 2.0.3 and Electron 3.0.0-beta.1

Steps to reproduce:
Steps in the original post but use npm install electron@2.0.3
Steps in the original post but use npm install electron@3.0.0-beta.1

@hovancik
Copy link
Author

hovancik commented Jul 2, 2018

The behavior is the same with setKiosk instead of setFullscreen

@sofianguy
Copy link
Contributor

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 blocked/need-info label for the above reasons. This issue will be closed 7 days from now if there is no response.

Thanks in advance! Your help is appreciated.

@sofianguy sofianguy added the blocked/need-info ❌ Cannot proceed without more information label Aug 9, 2019
@hovancik
Copy link
Author

still issue in electron 6.

@sofianguy sofianguy added 6-0-x and removed blocked/need-info ❌ Cannot proceed without more information labels Aug 12, 2019
@sofianguy sofianguy added this to Unsorted Issues in 6.1.x Aug 12, 2019
@lkrms
Copy link

lkrms commented Apr 23, 2020

@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.

@electron-triage
Copy link

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.

@hovancik
Copy link
Author

Thanks to the friendly bot, I had to recreate this issue: #28130 Please subscribe there if you want to get updates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
6.1.x
Unsorted Issues
Development

No branches or pull requests

6 participants