diff options
Diffstat (limited to 'lumina-desktop/LDesktop.h')
-rw-r--r-- | lumina-desktop/LDesktop.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lumina-desktop/LDesktop.h b/lumina-desktop/LDesktop.h index c602b3f2..c2089c7b 100644 --- a/lumina-desktop/LDesktop.h +++ b/lumina-desktop/LDesktop.h @@ -85,9 +85,11 @@ private slots: //Menu functions void UpdateMenu(bool fast = false); - void ShowMenu(){ + void ShowMenu(const QPoint &pt = QPoint()){ UpdateMenu(true); //run the fast version - deskMenu->popup(QCursor::pos()); + qDebug() << "Show Context Menu:" << QCursor::pos() << pt; + if(pt.isNull()){ deskMenu->popup(QCursor::pos()); } + else{ deskMenu->popup(pt); } } void UpdateWinMenu(); void winClicked(QAction*); |