This commit is contained in:
朱子楚\zhuzi
2023-12-18 23:56:28 +08:00
parent 6d2a8cde7a
commit af6e39d8c0
4 changed files with 5 additions and 11 deletions

View File

@ -10,7 +10,6 @@ endif()
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
if (FLUENTUI_BUILD_STATIC_LIB)
add_definitions(-DFLUENTUI_BUILD_STATIC_LIB)
endif()

View File

@ -73,16 +73,11 @@ bool FramelessEventFilter::nativeEventFilter(const QByteArray &eventType, void *
}
return false;
}else if(uMsg == WM_NCACTIVATE){
if(isCompositionEnabled()){
*result = DefWindowProc(hwnd, uMsg, wParam, -1);
}else{
if (wParam == FALSE) {
*result = TRUE;
} else {
*result = FALSE;
}
if(!isCompositionEnabled()){
*result = 1;
return true;
}
return true;
return false;
}
return false;
#endif