Skip to content

Commit

Permalink
fix: mac fullscreen break
Browse files Browse the repository at this point in the history
  • Loading branch information
Alastair Hawkes committed Apr 28, 2022
1 parent 9bad3a5 commit 8fd653e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion app/main/src/lifecycleEventHandlers/fullScreenBreak.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,19 @@ const setFullScreen = (
win: BrowserWindow | null,
fullscreenState: FullscreenState
) => {
console.log(
"Fullscreen",
win,
flag,
win?.isFullScreen(),
win?.isFullScreenable()
);
win?.setFullScreenable(true);
win?.show();
win?.focus();
win?.setAlwaysOnTop(alwaysOnTop, "screen-saver");
win?.setSkipTaskbar(flag);
win?.setFullScreen(flag);
win?.setResizable(flag);
win?.setVisibleOnAllWorkspaces(flag);

fullscreenState.isFullscreen = flag;
Expand Down
2 changes: 1 addition & 1 deletion app/main/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ function createMainWindow() {
win = new BrowserWindow({
width: 340,
height: getFrameHeight(),
resizable: true,
resizable: false,
maximizable: false,
show: false,
frame: store.get("useNativeTitlebar"),
Expand Down

0 comments on commit 8fd653e

Please sign in to comment.