Merge remote-tracking branch 'origin/5.14' into 5.15
Change-Id: If5fcfe5252c1ac1db63ec77136b186a104280b57
This commit is contained in:
commit
4593b24945
@ -23,8 +23,8 @@ qtConfig(xkbcommon) {
|
||||
QT_FOR_PRIVATE += xkbcommon_support-private
|
||||
}
|
||||
|
||||
qtHaveModule(linuxaccessibility_support_private): \
|
||||
QT_PRIVATE += linuxaccessibility_support_private
|
||||
qtHaveModule(linuxaccessibility_support-private): \
|
||||
QT_PRIVATE += linuxaccessibility_support-private
|
||||
|
||||
QMAKE_USE += wayland-client
|
||||
|
||||
|
@ -1381,7 +1381,10 @@ void QWaylandInputDevice::handleTouchPoint(int id, Qt::TouchPointState state, co
|
||||
tp.area.moveCenter(globalPosition);
|
||||
}
|
||||
|
||||
tp.state = state;
|
||||
// If the touch point was pressed earlier this frame, we don't want to overwrite its state.
|
||||
if (tp.state != Qt::TouchPointPressed)
|
||||
tp.state = state;
|
||||
|
||||
tp.pressure = tp.state == Qt::TouchPointReleased ? 0 : 1;
|
||||
}
|
||||
|
||||
|
@ -58,13 +58,10 @@ DefaultCompositor::DefaultCompositor()
|
||||
});
|
||||
});
|
||||
|
||||
QObject::connect(get<XdgWmBase>(), &XdgWmBase::toplevelCreated, [&] (XdgToplevel *toplevel) {
|
||||
// Needed because lambdas don't support Qt::DirectConnection
|
||||
exec([&]{
|
||||
if (m_config.autoConfigure)
|
||||
toplevel->sendCompleteConfigure();
|
||||
});
|
||||
});
|
||||
QObject::connect(get<XdgWmBase>(), &XdgWmBase::toplevelCreated, get<XdgWmBase>(), [&] (XdgToplevel *toplevel) {
|
||||
if (m_config.autoConfigure)
|
||||
toplevel->sendCompleteConfigure();
|
||||
}, Qt::DirectConnection);
|
||||
}
|
||||
Q_ASSERT(isClean());
|
||||
}
|
||||
|
@ -83,7 +83,7 @@ XdgSurface::XdgSurface(XdgWmBase *xdgWmBase, Surface *surface, wl_client *client
|
||||
{
|
||||
QVERIFY(!surface->m_pending.buffer);
|
||||
QVERIFY(!surface->m_committed.buffer);
|
||||
connect(this, &XdgSurface::toplevelCreated, xdgWmBase, &XdgWmBase::toplevelCreated);
|
||||
connect(this, &XdgSurface::toplevelCreated, xdgWmBase, &XdgWmBase::toplevelCreated, Qt::DirectConnection);
|
||||
connect(surface, &Surface::attach, this, &XdgSurface::verifyConfigured);
|
||||
connect(surface, &Surface::commit, this, [this] {
|
||||
m_committed = m_pending;
|
||||
|
Loading…
x
Reference in New Issue
Block a user