From 8b72eabae325c34d8eab1544203993015cc91741 Mon Sep 17 00:00:00 2001 From: Sine Striker <trueful@163.com> Date: 周一, 18 12月 2023 00:54:51 +0800 Subject: [PATCH] Add win32 winIdChange workaround --- src/core/contexts/qtwindowcontext.cpp | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/core/contexts/qtwindowcontext.cpp b/src/core/contexts/qtwindowcontext.cpp index ad982c6..45aed07 100644 --- a/src/core/contexts/qtwindowcontext.cpp +++ b/src/core/contexts/qtwindowcontext.cpp @@ -103,7 +103,8 @@ QtWindowEventFilter::~QtWindowEventFilter() = default; - bool QtWindowEventFilter::eventFilter(QObject *object, QEvent *event) { + bool QtWindowEventFilter::eventFilter(QObject *obj, QEvent *event) { + Q_UNUSED(obj) auto type = event->type(); if (type < QEvent::MouseButtonPress || type > QEvent::MouseMove) { return false; @@ -252,7 +253,7 @@ AbstractWindowContext::virtual_hook(id, data); } - bool QtWindowContext::setupHost() { + bool QtWindowContext::winIdChanged() { m_delegate->setWindowFlags(m_host, Qt::FramelessWindowHint); std::ignore = new QtWindowEventFilter(this, this); return true; -- Gitblit v1.9.1