Changeset View
Changeset View
Standalone View
Standalone View
applets/systemtray/systemtray.cpp
Show First 20 Lines • Show All 157 Lines • ▼ Show 20 Line(s) | 147 | { | |||
---|---|---|---|---|---|
158 | } else { | 158 | } else { | ||
159 | pos = QPoint(); | 159 | pos = QPoint(); | ||
160 | } | 160 | } | ||
161 | 161 | | |||
162 | QMenu *desktopMenu = new QMenu; | 162 | QMenu *desktopMenu = new QMenu; | ||
163 | connect(this, &QObject::destroyed, desktopMenu, &QMenu::close); | 163 | connect(this, &QObject::destroyed, desktopMenu, &QMenu::close); | ||
164 | desktopMenu->setAttribute(Qt::WA_DeleteOnClose); | 164 | desktopMenu->setAttribute(Qt::WA_DeleteOnClose); | ||
165 | 165 | | |||
166 | if (appletInterface->window() && appletInterface->window()->mouseGrabberItem()) { | ||||
167 | appletInterface->window()->mouseGrabberItem()->ungrabMouse(); | ||||
168 | } | ||||
169 | | ||||
166 | emit applet->contextualActionsAboutToShow(); | 170 | emit applet->contextualActionsAboutToShow(); | ||
167 | foreach (QAction *action, applet->contextualActions()) { | 171 | foreach (QAction *action, applet->contextualActions()) { | ||
168 | if (action) { | 172 | if (action) { | ||
169 | desktopMenu->addAction(action); | 173 | desktopMenu->addAction(action); | ||
170 | } | 174 | } | ||
171 | } | 175 | } | ||
172 | 176 | | |||
173 | QAction *runAssociatedApplication = applet->actions()->action(QStringLiteral("run associated application")); | 177 | QAction *runAssociatedApplication = applet->actions()->action(QStringLiteral("run associated application")); | ||
▲ Show 20 Lines • Show All 379 Lines • Show Last 20 Lines |