mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2024-11-23 11:17:15 +08:00
update
This commit is contained in:
parent
e16a8d6b09
commit
2bd03ad9d8
@ -88,7 +88,7 @@ time_t IPC::postEvent(const QString& name, const QByteArray& data, uint32_t dest
|
|||||||
memcpy(evt->data, data.constData(), data.length());
|
memcpy(evt->data, data.constData(), data.length());
|
||||||
mem->lastEvent = evt->posted = result = qMax(mem->lastEvent + 1, time(nullptr));
|
mem->lastEvent = evt->posted = result = qMax(mem->lastEvent + 1, time(nullptr));
|
||||||
evt->dest = dest;
|
evt->dest = dest;
|
||||||
evt->sender = _getpid();
|
evt->sender = getpid();
|
||||||
qDebug() << "postEvent " << name << "to" << dest;
|
qDebug() << "postEvent " << name << "to" << dest;
|
||||||
}
|
}
|
||||||
globalMemory.unlock();
|
globalMemory.unlock();
|
||||||
@ -170,7 +170,7 @@ IPC::IPCEvent* IPC::fetchEvent()
|
|||||||
memset(evt, 0, sizeof(IPCEvent));
|
memset(evt, 0, sizeof(IPCEvent));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (evt->posted && !evt->processed && evt->sender != _getpid()
|
if (evt->posted && !evt->processed && evt->sender != getpid()
|
||||||
&& (evt->dest == profileId || (evt->dest == 0 && isCurrentOwnerNoLock()))) {
|
&& (evt->dest == profileId || (evt->dest == 0 && isCurrentOwnerNoLock()))) {
|
||||||
return evt;
|
return evt;
|
||||||
}
|
}
|
||||||
|
@ -10,7 +10,6 @@ Item{
|
|||||||
default property alias contentItem: container.data
|
default property alias contentItem: container.data
|
||||||
|
|
||||||
id:control
|
id:control
|
||||||
|
|
||||||
FluShadow{
|
FluShadow{
|
||||||
anchors.fill: container
|
anchors.fill: container
|
||||||
radius: control.radius[0]
|
radius: control.radius[0]
|
||||||
|
Loading…
Reference in New Issue
Block a user