Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
ArkadyBuryakov opened this issue May 10, 2024 · 5 comments
Labels

Comments

@ArkadyBuryakov
Copy link

Steps to reproduce

Prerequisites

Telegram

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

Hyprland

  • misc.focus_on_activate = true - to enable focus steal window behaviour

Dunst

  • mouse_left_click = do_action - to run action that was passed to notification

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
Copy link
Collaborator

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

@ilya-fedin
Copy link
Contributor

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
Copy link
Author

ArkadyBuryakov commented May 11, 2024

@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:

  • Enable draw attention: Telegram steals focus on notification event. Without me interacting with notification.
  • Disable draw attention: On click on notification it is being closed and I have to manually navigate to the Telegram window.

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
Copy link
Contributor

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
Copy link
Author

ArkadyBuryakov commented May 11, 2024

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!

@ArkadyBuryakov ArkadyBuryakov closed this as not planned Won't fix, can't repro, duplicate, stale May 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants