From: Stefan Schimanski Date: Fri, 8 Feb 2008 23:51:30 +0000 (+0000) Subject: * show context menu at the right position X-Git-Tag: 1.6.10~6366 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=357b4f8603db2021f2cf92033dbbb61439bf87fa;p=features.git * show context menu at the right position git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22881 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/frontends/qt4/GuiWorkArea.cpp b/src/frontends/qt4/GuiWorkArea.cpp index 1c66633e62..b894571fd7 100644 --- a/src/frontends/qt4/GuiWorkArea.cpp +++ b/src/frontends/qt4/GuiWorkArea.cpp @@ -544,10 +544,7 @@ void GuiWorkArea::contextMenuEvent(QContextMenuEvent * e) } // Position the menu to the right. // FIXME: menu position should be different for RTL text. - pos.rx() += menu->width(); - // FIXME: correct vertical position of the menu WRT screen espace. - //pos.ry() += menu->height(); - menu->exec(pos); + menu->exec(e->globalPos()); e->accept(); }