From 38a690e8ea62274632424d9ce1ab0c4ac33cdd27 Mon Sep 17 00:00:00 2001 From: Mentalflow <312902918@qq.com> Date: Thu, 1 Feb 2024 14:08:14 +0800 Subject: [PATCH] Fix titlebar buttons can't be clicked in windows. --- 3rdparty/RibbonUI | 2 +- app_source/qml/components/RibbonWindow.qml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/3rdparty/RibbonUI b/3rdparty/RibbonUI index 4614843..bca8baf 160000 --- a/3rdparty/RibbonUI +++ b/3rdparty/RibbonUI @@ -1 +1 @@ -Subproject commit 46148435f2687809716c84efdfea74921b891468 +Subproject commit bca8bafa5ee0dbe39b8f887fb4096ef39886aa92 diff --git a/app_source/qml/components/RibbonWindow.qml b/app_source/qml/components/RibbonWindow.qml index abd03d2..8749903 100644 --- a/app_source/qml/components/RibbonWindow.qml +++ b/app_source/qml/components/RibbonWindow.qml @@ -25,6 +25,8 @@ Window { FramelessHelper.setSystemButton(titleBar.maximizeBtn, FramelessHelperConstants.Maximize); FramelessHelper.setSystemButton(titleBar.closeBtn, FramelessHelperConstants.Close); } + FramelessHelper.setHitTestVisible(titleBar.left_container) + FramelessHelper.setHitTestVisible(titleBar.right_container) FramelessHelper.titleBarItem = titleBar; FramelessHelper.moveWindowToDesktopCenter(); window.visible = true;