Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-112170

QSystemTrayIcon::messageClicked also invoked if clicked on foreign notifications

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.15.7, 6.5.0 RC
    • None
    • Linux/Wayland, Linux/X11

    Description

      Originally reported as https://github.com/keshavbhatt/whatsie/issues/42.

      The application uses a QSystemTrayIcon. Whenever the tray icon or message is clicked, the application window opens in the foreground.

      The bug is that even if any other application (mail client, browser) shows a notification, the Qt application opens itself in the foreground. This is highly annoying.

      The cause for this is that QDBusTray connects to the ActionInvoked Signal without checking that it was invoked for the notification sent by this application.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            vogtinator Fabian Vogt
            Votes:
            5 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes