| Summary: | tray context menu popup with window frame and taskbar entry | ||
|---|---|---|---|
| Product: | [Frameworks and Libraries] frameworks-knotifications | Reporter: | nihui <shuizhuyuanluo> |
| Component: | general | Assignee: | Martin Klapetek <mklapetek> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | kdelibs-bugs-null, mgraesslin, nate |
| Priority: | NOR | ||
| Version First Reported In: | 5.26.0 | ||
| Target Milestone: | --- | ||
| Platform: | Chakra | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
| Attachments: | screenshot | ||
Created attachment 101711 [details]
screenshot
add screenshot
That commit is quite old, but adding committer anyway for inspection. This is fixed now. |
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