Message window (popup) always opens on the primary display

Description

I have setup with two displays and Mailspring is on the second. When trying to create new message or open some existing one it always ends up on the default display. Moving window to the secondary display and then closing doesn’t help - it’ll still open on the first one. It’s a minor issue but I’d gladly see it addressed. :slight_smile:

Setup

  • OS and Version: Windows 10 64bit
  • Mailspring Version: 1.3.0

(Originally posted by Draghmar on GitHub.)

I think this may be something we can fix - Electron BrowserWindow’s don’t indicate what screen they’re currently on, but I imagine each screen has a separate coordinate space range, so we might be able to identify the screen and then center the new window on the same screen. (electron/browser-window.md at 1375c3d805497246a01fd8a86bde0e5a356f1138 · electron/electron · GitHub)


(Originally posted by bengotow on GitHub.)

This problem applies also to viewing attachments as well

For anyone else that may stumble on this issue. If you are on Ubuntu you can use this rather hacky workaround using wmctrl and a python script that runs all the time:


(Originally posted by KennethNielsen on GitHub.)