32 lines
1.5 KiB
Diff
32 lines
1.5 KiB
Diff
From c158fb1f0616606f68fdd281a4632fb927065e1f Mon Sep 17 00:00:00 2001
|
|
From: liuxinhao <liuxinhao@kylinsec.com.cn>
|
|
Date: Thu, 1 Dec 2022 16:48:10 +0800
|
|
Subject: [PATCH 3/3] fix(KiranTitlebarWindow): Fix when zoomed
|
|
twice_GTK_FRAME_EXTENTS attribute needs to be updated
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
- 修复缩放两倍时_GTK_FRAME_EXTENTS属性需要更新的问题
|
|
---
|
|
.../kiran-titlebar-window/kiran-titlebar-window-private.cpp | 3 ++-
|
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/src/widgets/kiran-titlebar-window/kiran-titlebar-window-private.cpp b/src/widgets/kiran-titlebar-window/kiran-titlebar-window-private.cpp
|
|
index b16871e..18a2aa3 100644
|
|
--- a/src/widgets/kiran-titlebar-window/kiran-titlebar-window-private.cpp
|
|
+++ b/src/widgets/kiran-titlebar-window/kiran-titlebar-window-private.cpp
|
|
@@ -548,7 +548,8 @@ bool KiranTitlebarWindowPrivate::eventFilter(QObject *obj, QEvent *event)
|
|
// 在接近显示时进行处理设置_GTK_FRAME_EXTENTS属性
|
|
if( m_isCompositingManagerRunning )
|
|
{
|
|
- XLibHelper::SetShadowWidth(QX11Info::display(),q_ptr->winId(),shadowWidth,shadowWidth,shadowWidth,shadowWidth);
|
|
+ int scaledShadowWidth = q_ptr->devicePixelRatio()*shadowWidth;
|
|
+ XLibHelper::SetShadowWidth(QX11Info::display(), q_ptr->winId(), scaledShadowWidth, scaledShadowWidth, scaledShadowWidth, scaledShadowWidth);
|
|
}
|
|
break;
|
|
case QEvent::HoverMove:
|
|
--
|
|
2.33.0
|
|
|