telegramdesktop / tdesktop

Telegram Desktop messaging app
https://desktop.telegram.org/
Other
26.23k stars 5.2k forks source link

Application window not always hiding on tray icon click #27632

Closed gudvinr closed 6 months ago

gudvinr commented 7 months ago

Steps to reproduce

  1. Open Telegram Desktop
  2. Press on tray icon

Expected behaviour

App hides its window

Actual behaviour

App might not hide its window.
You need to click on icon multiple times.

Sometimes, switching to different application and then clicking on icon helps.

Happens with BOTH prebuilt version from telegram website and distro built version. Currently I have extra/telegram-desktop which I installed in hopes to fix this issue, but it didn't.

Also this is not Plasma 6 issue because I had this on 5.27 as well (and maybe earlier too but not sure).

Operating system

Arch Linux, KDE Plasma 6.0.2

Version of Telegram Desktop

4.15.2

Installation source

Other (unofficial) source

Crash ID

No response

Logs

No response

ilya-fedin commented 7 months ago

It activates the window if it's not active already. This was the expected behavior for everyone so far...

gudvinr commented 7 months ago

Window activates if it's not active.
But if it's active, I expect that click on tray icon will hide main window.

Click might not hide window and only does so after you click multiple times.
Sometimes after more than two clicks.
Sometimes it doesn't hide after any reasonable amount of clicks until I click somewhere outside of telegram window and then click on icon two times (first click activates, second hiding).

ilya-fedin commented 7 months ago

I don't think this will ever be fixed, sorry, this is a problem existing since forever. Focus handling is very bugged on X11, there are multiple ways of doing that and Qt is poor on that. I recommend to switch to Wayland.

ilya-fedin commented 7 months ago

Actually, even though I remember similar reports in the past, I can't reproduce this and confirm the issue. Sorry.

tdesktop opens, I click on the tray icon and the window hides just fine.

github-actions[bot] commented 6 months ago

This issue has been automatically closed because no developer succeeded to reproduce the issue with the given reproduction steps. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you find what's missing to reproduce the issue so that we can investigate further.

Note that GitHub is a developer communication platform. If you're an ordinary user seeking for help, get to support crew via Settings -> Ask question in the application.

gudvinr commented 6 months ago

It could be that Plasma 6/Qt 6.6 had some focus-related issues because now I don't experience same issue anymore.

Qt updated to 6.7 and Plasma is 6.0.3 now.