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]: Window Not Displaying Over Dock in Fullscreen Mode #41874

Closed
3 tasks done
ayushete02 opened this issue Apr 16, 2024 · 5 comments
Closed
3 tasks done

[Bug]: Window Not Displaying Over Dock in Fullscreen Mode #41874

ayushete02 opened this issue Apr 16, 2024 · 5 comments
Labels

Comments

@ayushete02
Copy link

Preflight Checklist

Electron Version

29.3.0

What operating system are you using?

macOS

Operating System Version

14.4.1

What arch are you using?

arm64 (including Apple Silicon)

Last Known Working Electron version

No response

Expected Behavior

I am developing an application using Electron where I need the application window to display in full-screen mode, covering all screen elements including the dock (on macOS)

Actual Behavior

The window does not extend over the dock; instead, it adjusts to fit the available space above the dock, not utilizing the full screen.

Screenshot 2024-04-16 at 4 43 33 PM

Testcase Gist URL

No response

Additional Information

No response

@codebytere codebytere added the blocked/need-repro Needs a test case to reproduce the bug label Apr 16, 2024
@electron-issue-triage
Copy link

Hello @ayushete02. Thanks for reporting this and helping to make Electron better!

Would it be possible for you to make a standalone testcase with only the code necessary to reproduce the issue? For example, Electron Fiddle is a great tool for making small test cases and makes it easy to publish your test case to a gist that Electron maintainers can use.

Stand-alone test cases make fixing issues go more smoothly: it ensure everyone's looking at the same issue, it removes all unnecessary variables from the equation, and it can also provide the basis for automated regression tests.

Now adding the blocked/need-repro Needs a test case to reproduce the bug label for this reason. After you make a test case, please link to it in a followup comment. This issue will be closed in 10 days if the above is not addressed.

@ayushete02
Copy link
Author

Screen.Recording.2024-04-16.at.8.52.29.PM.mov

Hello, Thank you for your guidance. I appreciate the suggestion to use Electron Fiddle for creating a minimal test case. Here is a more detailed context of the issue:

I am developing a video recorder application that includes a feature allowing users to select a specific region of the screen to record. While this feature functions correctly on Windows, I am facing a challenge on macOS. Despite setting the window to fullscreen mode, it does not overlay the dock and the top taskbar, which is crucial for the functionality of the region selection feature.

To provide a clearer picture i shared you a video, the application creates a fullscreen overlay on the desktop under which users can define the recording area. However, on macOS, the overlay window does not cover the entire screen, specifically leaving the dock and top taskbar areas exposed. This issue limits the selectable region and affects the user experience.

@electron-issue-triage electron-issue-triage bot removed the blocked/need-repro Needs a test case to reproduce the bug label Apr 16, 2024
@ayushete02
Copy link
Author

@codebytere
Copy link
Member

This is unfortunately the intended behavior for the BrowserWindow options you've chosen as well as the way macOS does within-desktop fullscreen. If you try to drag down the window of an existing native macOS system app (take Finder for example) you can't do that either.

@codebytere codebytere closed this as not planned Won't fix, can't repro, duplicate, stale Apr 16, 2024
@ayushete02
Copy link
Author

ayushete02 commented Apr 17, 2024

Hello,

Thank you for your insights @codebytere on the macOS behavior with BrowserWindow. I understand that the observed behavior aligns with macOS's default handling of within-desktop fullscreen applications.

However, I have noticed that some Electron apps seem to achieve a truly immersive fullscreen experience that covers the dock and top taskbar. Could you possibly provide any insights or documentation on how these applications might be circumventing the default macOS limitations?

Additionally, I am considering a potential solution where I could programmatically hide the dock to allow the fullscreen window to cover the entire screen. Is there a recommended approach within Electron to achieve this? Any guidance or references to similar implementations would be extremely helpful as I navigate this part of the project.

Thank you for your continued support and looking forward to your advice.

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

No branches or pull requests

2 participants