mirror of
https://github.com/electron/electron.git
synced 2026-05-02 03:00:22 -04:00
* test: add failing test for `setFullscreen(false)` `setFullscreen(false)` should do nothing when not already in fullscreen, but it hides the menu bar on Linux. Co-authored-by: WofWca <wofwca@protonmail.com> * fix: menu bar hiding on two setFullScreen(false) This fixes the following bug on Linux (and maybe macOS): 1. Create a window with a menu bar. 2. Call `win.setFullScreen(false)`. The menu bar will hide. See the original bug in our project: https://github.com/deltachat/deltachat-desktop/issues/4752. Co-authored-by: WofWca <wofwca@protonmail.com> --------- Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: WofWca <wofwca@protonmail.com>