https://bugs.kde.org/show_bug.cgi?id=371510

            Bug ID: 371510
           Summary: tray context menu popup with window frame and taskbar
                    entry
           Product: frameworks-knotifications
           Version: 5.26.0
          Platform: Chakra
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: mklape...@kde.org
          Reporter: shuizhuyuan...@126.com
                CC: kdelibs-b...@kde.org

it may be a regression in the fix of bugs.kde.org/show_bug.cgi?id=335015

if the context menu is the associated widget, the menu will popup with ugly
window frame and taskbar entry when activated.

Here is an example that reproduces this issue.

#include <QApplication>
#include <QAction>
#include <QMenu>
#include <KStatusNotifierItem>

int main(int argc, char** argv)
{
    QApplication app(argc, argv);

    QWidget mainwindow;

    KStatusNotifierItem* tray = new KStatusNotifierItem(&mainwindow);

    tray->setAssociatedWidget(tray->contextMenu());

    QAction* action1 = new QAction("action1", &mainwindow);
    QAction* action2 = new QAction("action2", &mainwindow);
    QAction* action3 = new QAction("action3", &mainwindow);
    tray->contextMenu()->addAction(action1);
    tray->contextMenu()->addAction(action2);
    tray->contextMenu()->addAction(action3);

    mainwindow.show();

    return app.exec();
}


Reproducible: Always

Steps to Reproduce:
1. compile and run my sample code
2. left click tray icon

Actual Results:  
tray context menu popup with window frame and taskbar entry

Expected Results:  
tray context menu popup without window frame or taskbar entry

chakra linux
qt 5.7.0
kde framework 5.26.0
kernel 4.5.7

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to