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

QSystemTrayIcon doesn't open context menu second time in gnome 3

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.8.0
    • Fix Version/s: 5.11.0
    • Component/s: QPA: X11/XCB
    • Labels:
      None
    • Environment:
      debian 8 ( gnome 3.14 )

      debian 9 ( gnome 3.22.2 )

      Description

      issue has been caught in debian 8 ( gnome 3.14 ) and debian 9 ( gnome 3.22.2 )

      Test case:

      1. run app
      2. summon notification area ( super + M )
      3. click right button on icon in tray ( the menu will appear )
      4. click left button on desktop to lose focus ( the menu will disappear  and notification area to )
      5. summon notification area again and click right button on icon in tray ( nothing will happen ) 

       

      QSystemTrayIconSys catch MouseButtonPress, ContextMenu first time and does not second so this code doesn't invoke:

      void QSystemTrayIconSys::mousePressEvent(QMouseEvent *ev)
      {
       QPoint globalPos = ev->globalPos();
      #ifndef QT_NO_CONTEXTMENU
       if (ev->button() == Qt::RightButton && q->contextMenu())
       q->contextMenu()->popup(globalPos);
      #endif
      ...

        Attachments

          Issue Links

          For Gerrit Dashboard: QTBUG-62329
          # Subject Branch Project Status CR V

            Activity

              People

              Assignee:
              paeglis Gatis Paeglis
              Reporter:
              haku Paul Busovikov
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes