summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/windows/qwindowswindow.cpp
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@qt.io>2022-07-14 09:28:39 +0000
committerTor Arne Vestbø <tor.arne.vestbo@qt.io>2022-07-14 13:24:43 +0000
commit845ea8921108c860da329ccfa34f0842958a6901 (patch)
tree70543a8c9de2117883a641968381640207b028f5 /src/plugins/platforms/windows/qwindowswindow.cpp
parenta61bf508e3c138c429e0a73498c745c3c0d3f0f7 (diff)
Revert "Windows QPA: Add MSWindowsNoRedirectionBitmap flag"
This reverts commit 417bb463526d3ec3d80d66b029c1064fde88391f. The API addition was premature, as it can potentially be handled by the platform plugin automatically, and if not, should possibly live in QSurfaceFormat instead. Change-Id: I5c7050ce9c50b6c6a93ddfa6d2e842db0b9eed0d Reviewed-by: Yuhang Zhao <2546789017@qq.com> 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.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/plugins/platforms/windows/qwindowswindow.cpp b/src/plugins/platforms/windows/qwindowswindow.cpp
index 1ace82c5c7..929e468115 100644
--- a/src/plugins/platforms/windows/qwindowswindow.cpp
+++ b/src/plugins/platforms/windows/qwindowswindow.cpp
@@ -841,11 +841,8 @@ 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 (flags & Qt::WindowTransparentForInput)
+ if (flagsIn & Qt::WindowTransparentForInput)
exStyle |= WS_EX_LAYERED | WS_EX_TRANSPARENT;
-
- if (flags & Qt::MSWindowsNoRedirectionBitmap)
- exStyle |= WS_EX_NOREDIRECTIONBITMAP;
}
}