fix(electron): linux crash on exiting presentation mode (#6253)
This commit is contained in:
@@ -127,10 +127,13 @@ async function createWindow(additionalArguments: string[]) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
browserWindow.on('leave-full-screen', () => {
|
browserWindow.on('leave-full-screen', () => {
|
||||||
// FIXME: workaround for theme bug in full screen mode
|
// seems call this too soon may cause the app to crash
|
||||||
const size = browserWindow.getSize();
|
setTimeout(() => {
|
||||||
browserWindow.setSize(size[0] + 1, size[1] + 1);
|
// FIXME: workaround for theme bug in full screen mode
|
||||||
browserWindow.setSize(size[0], size[1]);
|
const size = browserWindow.getSize();
|
||||||
|
browserWindow.setSize(size[0] + 1, size[1] + 1);
|
||||||
|
browserWindow.setSize(size[0], size[1]);
|
||||||
|
});
|
||||||
uiSubjects.onMaximized.next(false);
|
uiSubjects.onMaximized.next(false);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user