organicmaps/organicmaps

[desktop] main window doesn't respect display scaling

Aperta

#4836 aperta il 22 mar 2023

 (4 commenti) (0 reazioni) (0 assegnatari)C++ (761 fork)batch import
DesktopGood first issue

Metriche repository

Star
 (7887 stelle)
Metriche merge PR
 (Merge medio 13g 6h) (91 PR mergiate in 30 g)

Descrizione

System: GNOME, 3072/1920px 200% display scale

This issue is hidden by the window being maximised on start, but the window doesn't take display scaling into account when sizing the window, resulting in the window being 2x the size of the screen when un-maximised. after disabling display scaling in my shell, the window un-maximises to a reasonable size

caused by https://github.com/organicmaps/organicmaps/blob/0ac1cc34a3be75052dc5733efe9a9f9a46fdc428/qt/main.cpp#L245 ?

would be good to centre it when un-maximising as well, currently it grabs at the top left corner

Guida contributor