mawie81 / electron-window-state

A library to store and restore window sizes and positions for your Electron app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Specific window size and position are not remembered

jebbdomingo opened this issue · comments

The window only restores to either the default size or maximized whenever the window is closed or quitting the app. The position is also not remembered, it always starts in the middle of the screen.

Is this still happening with the latest version?
If so, can you provide a repo where I can reproduce the issue?

screen.getPrimaryDisplay().bounds does not return correct values

My screen is 2560x1440

screen.getPrimaryDisplay().bounds returns
{ x: 0, y: 0, width: 1422, height: 800 }

This is on Linux.