diff options
author | Yuhang Zhao <2546789017@qq.com> | 2022-06-15 14:02:55 +0800 |
---|---|---|
committer | Yuhang Zhao <2546789017@qq.com> | 2022-07-14 13:00:11 +0800 |
commit | 417bb463526d3ec3d80d66b029c1064fde88391f (patch) | |
tree | 75a387335daaab9107c7b7a3a51fe687eac1ec59 /src/plugins/platforms/windows/qwindowswindow.cpp | |
parent | 331fa5e8d6b6586131afc153b76db0f7e153656d (diff) |
Windows QPA: Add MSWindowsNoRedirectionBitmap flag
This flag will be useful for windows that only use
3D graphics API to do the rendering, such as Qt Quick
applications.
As a drive-by, fix a typo in the above line.
Pick-to: 6.4
Change-Id: Ic6edcb7610055693734a5d5aff5e906991d4b911
Reviewed-by: André de la Rocha <andre.rocha@qt.io>
Diffstat (limited to 'src/plugins/platforms/windows/qwindowswindow.cpp')
-rw-r--r-- | src/plugins/platforms/windows/qwindowswindow.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/plugins/platforms/windows/qwindowswindow.cpp b/src/plugins/platforms/windows/qwindowswindow.cpp index 929e468115..1ace82c5c7 100644 --- a/src/plugins/platforms/windows/qwindowswindow.cpp +++ b/src/plugins/platforms/windows/qwindowswindow.cpp @@ -841,8 +841,11 @@ void WindowCreationData::fromWindow(const QWindow *w, const Qt::WindowFlags flag // make mouse events fall through this window // NOTE: WS_EX_TRANSPARENT flag can make mouse inputs fall through a layered window - if (flagsIn & Qt::WindowTransparentForInput) + if (flags & Qt::WindowTransparentForInput) exStyle |= WS_EX_LAYERED | WS_EX_TRANSPARENT; + + if (flags & Qt::MSWindowsNoRedirectionBitmap) + exStyle |= WS_EX_NOREDIRECTIONBITMAP; } } |