Skip to content

Commit

Permalink
Merge pull request #256 from roldanjr/fullscreen-fix
Browse files Browse the repository at this point in the history
Fullscreen fix
  • Loading branch information
roldanjr authored Apr 30, 2022
2 parents 460090b + fbfaca9 commit 04c7671
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
7 changes: 3 additions & 4 deletions app/main/src/lifecycleEventHandlers/fullScreenBreak.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,12 @@ const setFullScreen = (
win: BrowserWindow | null,
fullscreenState: FullscreenState
) => {
win?.show();
win?.focus();
win?.setFullScreenable(true);
win?.setAlwaysOnTop(alwaysOnTop, "screen-saver");
win?.setSkipTaskbar(flag);
win?.setFullScreen(flag);
win?.setResizable(flag);
win?.setVisibleOnAllWorkspaces(flag);
win?.show();
win?.focus();

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
1 change: 1 addition & 0 deletions app/renderer/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<meta charset="UTF-8" />
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="Content-Security-Policy" content="default-src 'self' data: 'unsafe-inline'">
<title>Pomatez</title>
</head>
<body>
Expand Down

0 comments on commit 04c7671

Please sign in to comment.