mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2024-11-26 13:27:05 +08:00
update
This commit is contained in:
parent
f04bc2951f
commit
d37cd00322
@ -30,7 +30,7 @@ static inline bool isCompositionEnabled(){
|
||||
}
|
||||
return composition_enabled;
|
||||
}
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
#endif
|
||||
@ -83,7 +83,6 @@ 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;
|
||||
@ -91,7 +90,7 @@ bool FramelessEventFilter::nativeEventFilter(const QByteArray &eventType, void *
|
||||
_helper->setOriginalPos({});
|
||||
offsetSize = 1;
|
||||
}
|
||||
}else{
|
||||
if(!isCompositionEnabled()){
|
||||
offsetSize = 0;
|
||||
}
|
||||
clientRect->top = originalTop+offsetSize;
|
||||
|
Loading…
Reference in New Issue
Block a user