Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion desktop/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,14 @@ const mainWindow = (() => {
}

evt.preventDefault();
browserWindow.hide();

// Check if window is fullscreen and exit fullscreen before hiding
if (browserWindow.isFullScreen()) {
browserWindow.once('leave-full-screen', () => browserWindow.hide());
browserWindow.setFullScreen(false);
} else {
browserWindow.hide();
}
});

// Initiating a browser-back or browser-forward with mouse buttons should navigate history.
Expand Down