Commit b3445ab6 authored by Daniel Molkentin's avatar Daniel Molkentin
Browse files

Put completion widget on correct desktop for good.

parent db595e2f
......@@ -260,9 +260,9 @@ void CompletionWidget::updatePositionAndSize(int startPos)
const QRect cursorRect = m_editor->cursorRect(startPos);
const QDesktopWidget *desktop = QApplication::desktop();
#ifdef Q_OS_MAC
const QRect screen = desktop->availableGeometry(desktop->screenNumber(this));
const QRect screen = desktop->availableGeometry(desktop->screenNumber(m_editorWidget));
const QRect screen = desktop->screenGeometry(desktop->screenNumber(this));
const QRect screen = desktop->screenGeometry(desktop->screenNumber(m_editorWidget));
QPoint pos = cursorRect.bottomLeft();
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment