Fixed Snap issue with resizing on Windows 11 (#2686)

* Fixed Snap issue with resizing on Windows 11

* Run on focus/blur as well

* Whoops, left my logging changes

* Fix tests
This commit is contained in:
Devin Binnie
2023-04-21 18:09:20 -04:00
committed by GitHub
parent 73edb2fe48
commit 0f94b7d510
3 changed files with 11 additions and 0 deletions

View File

@@ -462,6 +462,7 @@ describe('main/windows/mainWindow', () => {
};
BrowserWindow.mockImplementation(() => window);
const mainWindow = new MainWindow();
mainWindow.getBounds = jest.fn();
mainWindow.init();
Object.defineProperty(process, 'platform', {
value: originalPlatform,