From 2bd03ad9d859502755e94d198a5662cfc58168e4 Mon Sep 17 00:00:00 2001 From: zhuzichu Date: Sat, 22 Apr 2023 18:26:10 +0800 Subject: [PATCH] update --- example/src/tool/IPC.cpp | 4 ++-- src/controls/FluRectangle.qml | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/example/src/tool/IPC.cpp b/example/src/tool/IPC.cpp index ae7ef401..f8466f4d 100644 --- a/example/src/tool/IPC.cpp +++ b/example/src/tool/IPC.cpp @@ -88,7 +88,7 @@ time_t IPC::postEvent(const QString& name, const QByteArray& data, uint32_t dest memcpy(evt->data, data.constData(), data.length()); mem->lastEvent = evt->posted = result = qMax(mem->lastEvent + 1, time(nullptr)); evt->dest = dest; - evt->sender = _getpid(); + evt->sender = getpid(); qDebug() << "postEvent " << name << "to" << dest; } globalMemory.unlock(); @@ -170,7 +170,7 @@ IPC::IPCEvent* IPC::fetchEvent() 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()))) { return evt; } diff --git a/src/controls/FluRectangle.qml b/src/controls/FluRectangle.qml index 7177e033..f5a96098 100644 --- a/src/controls/FluRectangle.qml +++ b/src/controls/FluRectangle.qml @@ -10,7 +10,6 @@ Item{ default property alias contentItem: container.data id:control - FluShadow{ anchors.fill: container radius: control.radius[0]