From d37cd003226f685368b722e684d286a03a5815c8 Mon Sep 17 00:00:00 2001 From: zhuzichu Date: Mon, 8 Jan 2024 17:03:24 +0800 Subject: [PATCH] update --- src/FluFramelessHelper.cpp | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/src/FluFramelessHelper.cpp b/src/FluFramelessHelper.cpp index c7a2a2e2..27084983 100644 --- a/src/FluFramelessHelper.cpp +++ b/src/FluFramelessHelper.cpp @@ -30,7 +30,7 @@ static inline bool isCompositionEnabled(){ } return composition_enabled; } - return true; + return false; } #endif @@ -83,15 +83,14 @@ bool FramelessEventFilter::nativeEventFilter(const QByteArray &eventType, void * int offsetSize = 0; bool isMaximum = IsZoomed(hwnd); offsetXY = QPoint(abs(clientRect->left - originalLeft),abs(clientRect->top - originalTop)); - if(isCompositionEnabled()){ - if(isMaximum){ - _helper->setOriginalPos(QPoint(originalLeft,originalTop)); - offsetSize = 0; - }else{ - _helper->setOriginalPos({}); - offsetSize = 1; - } + if(isMaximum){ + _helper->setOriginalPos(QPoint(originalLeft,originalTop)); + offsetSize = 0; }else{ + _helper->setOriginalPos({}); + offsetSize = 1; + } + if(!isCompositionEnabled()){ offsetSize = 0; } clientRect->top = originalTop+offsetSize;