This commit is contained in:
朱子楚\zhuzi 2023-12-18 21:32:56 +08:00
parent 1bf992ed69
commit 2bd0a831e7

View File

@ -10,8 +10,6 @@ static inline QByteArray qtNativeEventType()
static const auto result = "windows_generic_MSG";
return result;
}
#endif
static inline bool isCompositionEnabled(){
typedef HRESULT (WINAPI* DwmIsCompositionEnabledPtr)(BOOL *pfEnabled);
HMODULE module = LoadLibraryW(L"dwmapi.dll");
@ -28,6 +26,7 @@ static inline bool isCompositionEnabled(){
}
return false;
}
#endif
FramelessEventFilter::FramelessEventFilter(QQuickWindow* window){
_window = window;