mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-04 09:23:03 +00:00
fix poup applet appear
Change-Id: If869174e777d57fbb8ee124107447071c2ef4dae
This commit is contained in:
parent
af07f1451b
commit
9a605bbe24
@ -77,8 +77,9 @@ bool DockPopupWindow::eventFilter(QObject *o, QEvent *e)
|
||||
if (o != getContent() || e->type() != QEvent::Resize)
|
||||
return false;
|
||||
|
||||
// show(m_lastPoint, m_model);
|
||||
QMetaObject::invokeMethod(this, "show", Qt::QueuedConnection, Q_ARG(QPoint, m_lastPoint), Q_ARG(bool, m_model));
|
||||
// FIXME: ensure position move after global mouse release event
|
||||
QTimer::singleShot(100, this, [this] {show(m_lastPoint, m_model);});
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user