ODIN icon indicating copy to clipboard operation
ODIN copied to clipboard

restore window on primary screen when ODIN is started without secondary screen

Open ThomasHalwax opened this issue 5 years ago • 0 comments

Let's say one owns a computer with two screens attached. If ODIN is moved to the secondary screen and this screen is removed ODIN is automatically moved to the primary screen. But this behavior only works as long as ODIN is running.

Consider ODIN is displayed on the secondary screen and then the users quits ODIN. After that the secondary screen is removed. This will happen quite often when a projector is attached to a laptop. When the user restarts ODON no window is shown (because its bounds are outside the primary screen).

On OS X the window is moved back automatically but not on (MS) Windows. As log as Electron itself does not care about this we need to check if the persisted window state matches the available screens and move the window back to the primary screen if necessary.

ThomasHalwax avatar Apr 15 '20 14:04 ThomasHalwax