Tdesktop: [Windows 10] window size and position bug

Created on 16 Oct 2015  ·  33Comments  ·  Source: telegramdesktop/tdesktop

After each maximize and restore telegram window size is reduced.
App randomly starts at desktop center (first monitor) instead of last saved position.

bug windows

Most helpful comment

its a bit better if you adjust the settings under Compatibility tab in properties.
2018-05-03 18_11_03-window

All 33 comments

I cant confirm first, everything works fine.
I have only one monitor, but after closing, TDesktop starts with the same position and size.

Just tested again. Rebooted system 10 times and got 1 problem with window position restoring. Maybe it’s only windows 10 related problem, never happened on 8.1

I have the same problem with the current release, but I'm on Windows 7. I noticed the same bug on Windows 10 and it's really annoying.

Go to folder option and check "Launch folder windows in separate process". Fixed it for me.

image

This might be the same thing as https://github.com/telegramdesktop/tdesktop/issues/1693 Basically the issue is that Telegram doesn't remember the position when you use Aero snap (snap to side of screen) and then minimize/close to systray. If you minimize to task bar, it works, but once you turn off the task bar icon, it uses the last size and position before using the snap feature.

I confirm this, it needs few maximize+restore to notice.

After build 1803 (April update) this bug is more frequent and also when window is maximized on the second monitor, the topbar is cut in half

As far as I understand, this issue was about resizing a window and that it changes its position after being restored. What you talking is a common bug with applications on Windows 10 (with April update and for a long time on Insider) that have custom title bars: when maximized, sometimes such windows can be wrongly maximized (means, the title bar is slightly cropped; also when you have a taskbar on left/right side, bottom also can be cropped). I'm not sure there's something to do with Telegram Desktop. I can reproduce the same thing with Discord, VK Messenger. @JohnKiller, your comment is probably irrelevant to this issue and should be reported as a separate issue (needs confirmation by project maintainers) see #4649.

The bug about Telegram window losing its position or size after restore isn't reproducible for me.

its a bit better if you adjust the settings under Compatibility tab in properties.
2018-05-03 18_11_03-window

Скорей всего проблема появляется у тех, кто использует больше одного монитора.
Если второй монитор находится слева от основного, то расположение окна в левой части основного монитора рассчитывается неправильно и приводит к сбросу при следующем открытии программы.
Если расположить второй монитор справа от основного, то все работает нормально.

Изменение параметров совместимости ни к чему не приводит.
Изменение параметра папки "Запускать окна с папками в отдельном процессе" тоже ничего не дает.

Записал видео как ведет окно Telegram https://youtu.be/4cCg0uQQecQ

I must have something like that.
Every time I restart Telegram its window comes smaller. Looks like it loose exactly 16 pix. by width in one go. Maximize and restore goes well.
Took screenshots after every restart.
https://user-images.githubusercontent.com/11928504/75109637-2bb92c80-5636-11ea-958f-3795376faacc.gif
Windows 8.1 (not highly updated)
Telegram Desktop Portable v 1.9.14 (it seems the problem was on the previous version as well)

Oh, I didn't look at the date. Maybe I should create a new ticket?

I must have something like that.
Every time I restart Telegram its window comes smaller. Looks like it loose exactly 16 pix. by width in one go. Maximize and restore goes well.
Took screenshots after every restart.
https://user-images.githubusercontent.com/11928504/75109637-2bb92c80-5636-11ea-958f-3795376faacc.gif
Windows 8.1 (not highly updated)
Telegram Desktop Portable v 1.9.12 (it seems the problem was on the previous version as well)

Oh, I didn't look at the date. Maybe I should create a new ticket?

Please do :) Also, what version of Windows 8.1 do you use?

I must have something like that.
Every time I restart Telegram its window comes smaller. Looks like it loose exactly 16 pix. by width in one go. Maximize and restore goes well.
Took screenshots after every restart.
user-images.githubusercontent.com/11928504/75109637-2bb92c80-5636-11ea-958f-3795376faacc.gif
Windows 8.1 (not highly updated)
Telegram Desktop Portable v 1.9.12 (it seems the problem was on the previous version as well)

Oh, I didn't look at the date. Maybe I should create a new ticket?

no need of create new tickets for already opened issues even they are ancient.

Please do :) Also, what version of Windows 8.1 do you use?

6.3.9600 Build 9600

no need of create new tickets for already opened issues even they are ancient.

Sure. But it seems to me, the closed ticket #7222 is more relevant to my case.

@Vilmodao Thank you for the quick reply. Can you install the latest version of Telegram Desktop portable version? 1.9.14 is out

Thank you for the quick reply. Can you install the latest version of Telegram Desktop portable version? 1.9.14 is out

Oops... I already use 1.9.14. I wrote 1.9.12 by mistake. Sorry. I just fixed it.

Just checked absolutely new one portable copy of Telegram (1.9.14). Have reproduced the problem even with this start screen.
screenshot_2020_02_24_at_23_56_33

The size of the window will shrink automatically, each time it is closed and then opened again, until it shrinks to a certain extent.
1.9.19 also the same.

Sure. But it seems to me, the closed ticket #7222 is more relevant to my case.

Same here. I was just about to create a post about this issue when I realized it has tons of duplicates, but the #7222 is more relevant to me as well

The size of the window will shrink automatically, each time it is closed and then opened again, until it shrinks to a certain extent.
1.9.19 also the same.

I'm also running 1.9.19 beta, and it has been happening since a few updates ago on Windows 10. And it's quite annoying. It happens specially when you drag to resize until it snaps to bottom or top of the screen, otherwise it still remembers window size but only if you don't completely close the application

Sure. But it seems to me, the closed ticket #7222 is more relevant to my case.

Same here. I was just about to create a post about this issue when I realized it has tons of duplicates, but the #7222 is more relevant to me as well

The size of the window will shrink automatically, each time it is closed and then opened again, until it shrinks to a certain extent.
1.9.19 also the same.

I'm also running 1.9.19 beta, and it has been happening since a few updates ago on Windows 10. And it's quite annoying. It happens specially when you drag to resize until it snaps to bottom or top of the screen, otherwise it still remembers window size but only if you don't completely close the application

the 1.9.21 also have the problem,it's quite annoying.so sad.

The window shrinking bug is still here on version 2.1.

2.1.6 not fixed

Can confirm I have the same issue where the Telegram window is significantly smaller each time the app is launched (on a machine with two monitors, one 1920x1080 and one 1920x1200). There are no issues when minimizing/maximizing the window without closing the program.

Telegram: 2.1.10
OS: Windows 10 x64 (Version 2004 / Build 19041.329)

Yep. My Telegram window height gets smaller after each Telegram restart. Telegram version 2.1.13. Windows 10 version 1909. Laptop screen resolution 1600x900.

Same here.
2.1.14 and Windows 10 2004

2.2.0 not fixed hhh

2.3.1 not fixed

windows update to 2004,it fixed.

windows update to 2004,it fixed.

I'm on a fresh Windows install, recently updated to 2004 and the bug persists.

Apparently the problem can occur when you run the program minimized by default - setting it to launch normally fixed it for me. Still, would be nice to have that option without the window size bugging out. For a long time, I used to think the resize was an intentional change on Telegram's part.

It broke again, either after Tg or Windows update. I don't use multiple monitors or virtual desktops.

_Edit:_ now it doesn't resize once again, I'm confused.

@last-things , I noticed that the Telegram window currently can't physically be shrunk vertically past a certain point. So, for me, it gets smaller and smaller vertically until it hits that point, and then obviously no longer happens because it's reached that point. It's still not fixed for people who want the window to be larger than that, though.

"Use system window frame" seems to fixed this.
The right sizes written and read according to debug log, so bug is somewhere in applying size to custom title bar/shadow.

"Use system window frame" seems to fixed this.

Thanks, that does seem to be a workaround.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Yanrishatum picture Yanrishatum  ·  3Comments

slowaways picture slowaways  ·  3Comments

beppe9000 picture beppe9000  ·  3Comments

hosseinab picture hosseinab  ·  3Comments

abhyrz picture abhyrz  ·  3Comments