mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-27 11:50:00 +00:00
This PR uses `electron.screen.getPrimaryDisplay().workAreaSize` under electron to get the screen size. If this fails the current defaults (800x600) are used. This solves some problems with xrandr under bullseye where the sreen comes up with 800x600 instead of fullscreen, e.g. described [here](https://khassel.gitlab.io/magicmirror/pi-modules/). Tested this on my pi setup. By the way, the Issue #1919 is back on my side (not related to this PR) ...