telegramdesktop / tdesktop

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

Window activation on notification appearance instead of notification action in Wayland #27908

Closed ArkadyBuryakov closed 3 weeks ago

ArkadyBuryakov commented 3 weeks ago

Steps to reproduce

Prerequisites

Telegram

Hyprland

Dunst

Steps

  1. Schedule a message (or prepare another account on different device)
  2. Move to another workspace from Telegram window
  3. Wait for a scheduled message (or send message from another device)

Expected behaviour

Notification appears.

After click on notification - active focus moves to Telegram window. Chat from notification is opened.

Actual behaviour

Notification appears and active focus moves to Telegram window immediately.

After click chat from notification is being opened in application. However there is no focus change behavior.

Operating system

Archlinux, Hyprland with Dunst notification daemon

Version of Telegram Desktop

5.0.0-1 from Archlinux extra repo

Installation source

Other (unofficial) source

Crash ID

No response

Logs

No response

Aokromes commented 3 weeks ago

plz try downloading official static (non-flakpak, non-snap) version from https://desktop.telegram.org

ilya-fedin commented 3 weeks ago

Notification appears and active focus moves to Telegram window immediately.

This sounds intended as

* `Settings > Notifications and Sounds > Draw attention to the window` = `enabled`

So I don't see anything actionable here. If you don't like that then just disable the option.

ArkadyBuryakov commented 3 weeks ago

@Aokromes I tested on version 5.0.1 binary from https://desktop.telegram.org/ and got the same behavior.

@ilya-fedin Right now there is a UX missing feature - move active focus to Telegram window on notification action. I may have misinterpreted it with said setting.

Right now I have two options:

I can say that notification action is performed on click, because active chat is being changed in Telegram window. However there is no focus change event being produced in this action.

ilya-fedin commented 3 weeks ago

Right now there is a UX missing feature - move active focus to Telegram window on notification action.

@ArkadyBuryakov I can't confirm it's missing on my machine with KDE Wayland. Perhaps your minimalistic setup lacks integration bits between notification daemon and window manager.

ArkadyBuryakov commented 3 weeks ago

It seems you're right. I switched notification daemon to mako and it worked correctly.

I'll close this bug, since it has nothing to do with telegram desktop. Thanks!