fix: workaround for fullscreen mode (#3829)

This commit is contained in:
Peng Xiao
2023-08-19 00:26:21 +08:00
committed by GitHub
parent e389bf902f
commit 0ae6c977aa

View File

@@ -98,6 +98,13 @@ async function createWindow() {
// TODO: gracefully close the app, for example, ask user to save unsaved changes
});
browserWindow.on('leave-full-screen', () => {
// FIXME: workaround for theme bug in full screen mode
const size = browserWindow.getSize();
browserWindow.setSize(size[0] + 1, size[1] + 1);
browserWindow.setSize(size[0], size[1]);
});
/**
* URL for main window.
*/