File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
apps/desktop/src/platform Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -45,11 +45,11 @@ export function applyMainWindowStyles(window: BrowserWindow, existingWindowState
4545 // need to guard against null/undefined values
4646
4747 if ( existingWindowState ?. width && existingWindowState ?. height ) {
48- window . setSize ( existingWindowState . width , existingWindowState . height ) ;
48+ window . setSize ( Math . floor ( existingWindowState . width ) , Math . floor ( existingWindowState . height ) ) ;
4949 }
5050
5151 if ( existingWindowState ?. x && existingWindowState ?. y ) {
52- window . setPosition ( existingWindowState . x , existingWindowState . y ) ;
52+ window . setPosition ( Math . floor ( existingWindowState . x ) , Math . floor ( existingWindowState . y ) ) ;
5353 }
5454
5555 window . setWindowButtonVisibility ?.( true ) ;
You can’t perform that action at this time.
0 commit comments