From f916057f79f045a975d29929b9f21448541d79b2 Mon Sep 17 00:00:00 2001
From: SineStriker <trueful@163.com>
Date: 周五, 05 1月 2024 17:41:45 +0800
Subject: [PATCH] Fix mac multiple window crash

---
 src/quick/quickwindowagent_win.cpp |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/quick/quickwindowagent_win.cpp b/src/quick/quickwindowagent_win.cpp
index 61ea0ed..338dbfa 100644
--- a/src/quick/quickwindowagent_win.cpp
+++ b/src/quick/quickwindowagent_win.cpp
@@ -1,3 +1,7 @@
+// Copyright (C) 2023-2024 Stdware Collections (https://www.github.com/stdware)
+// Copyright (C) 2021-2023 wangwenx190 (Yuhang Zhao)
+// SPDX-License-Identifier: Apache-2.0
+
 #include "quickwindowagent_p.h"
 
 #include <QtQuick/QQuickPaintedItem>
@@ -101,6 +105,7 @@
     bool BorderItem::nativeEventFilter(const QByteArray &eventType, void *message,
                                        QT_NATIVE_EVENT_RESULT_TYPE *result) {
         Q_UNUSED(eventType)
+
         const auto msg = static_cast<const MSG *>(message);
         switch (msg->message) {
             case WM_THEMECHANGED:
@@ -125,6 +130,7 @@
 
     bool BorderItem::sharedEventFilter(QObject *obj, QEvent *event) {
         Q_UNUSED(obj)
+        
         switch (event->type()) {
             case QEvent::WindowStateChange: {
                 updateGeometry();

--
Gitblit v1.9.1