[regression] Starting on wrong (not main) display on first run
Author: kirsan31Created Sep 17, 2026Updated Sep 17, 2026
Labelsbug
Steps to reproduce
- Multiple display setup.
- Restart or start Windows.
- Start telegram - it will start on secondary display (while was closed on main).
This is exactly #30096 again (can't reopen old issue) :(
Started happening after 7.0.9. So with high probability regression was introduced in 8733e00604eb1e03bb88b6bc5d5bcfec22c97661 or late main_window.cpp commits.
Sadly for now I have no time to debug this by myself, maybe later if no one fixes it before...
Expected behaviour
Telegram should start on main display or remember the last one.
Actual behaviour
On first run after system boot, telegram will start on secondary display instead of main one. And also with wrong window size (bigger). I think it calculate size with 125% dpi settings from main display (secondary have 100%).
Operating system
Windows 11
Version of Telegram Desktop
7.1.5 and 7.2.8 was tested
Installation source
Downloaded from desktop.telegram.org or GitHub
Source: telegramdesktop/tdesktop