From 3e942c3dc8955be577079fbc028ce216e1c594b2 Mon Sep 17 00:00:00 2001
From: SineStriker <55847490+SineStriker@users.noreply.github.com>
Date: 周二, 11 2月 2025 19:07:53 +0800
Subject: [PATCH] Fix numerous bugs (#162)

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

diff --git a/src/quick/quickwindowagent.cpp b/src/quick/quickwindowagent.cpp
index 5225a09..aaa321c 100644
--- a/src/quick/quickwindowagent.cpp
+++ b/src/quick/quickwindowagent.cpp
@@ -44,6 +44,9 @@
             return false;
         }
 
+        // Make sure the native window handle is actually created before we apply
+        // various hooks. But we don't need the actual window handle so just ignore it.
+        std::ignore = window->winId();
         d->setup(window, new QuickItemDelegate());
         d->hostWindow = window;
 

--
Gitblit v1.9.1