File tree 2 files changed +9
-5
lines changed
2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 1
1
cmake_minimum_required (VERSION 3.19)
2
2
3
- project (QWindowKit VERSION 1.3.1 .0 LANGUAGES CXX)
3
+ project (QWindowKit VERSION 1.3.2 .0 LANGUAGES CXX)
4
4
5
5
# ----------------------------------
6
6
# Build Options
Original file line number Diff line number Diff line change @@ -2021,13 +2021,17 @@ namespace QWK {
2021
2021
// and align it with the upper-left corner of our new client area".
2022
2022
const auto clientRect = wParam ? &(reinterpret_cast <LPNCCALCSIZE_PARAMS>(lParam))->rgrc [0 ]
2023
2023
: reinterpret_cast <LPRECT>(lParam);
2024
- [[maybe_unused]] const auto & d3dFlickerReducer = qScopeGuard ([this ]() {
2024
+ [[maybe_unused]] const auto & flickerReducer = qScopeGuard ([this ]() {
2025
2025
// When we receive this message, it means the window size has changed
2026
2026
// already, and it seems this message always come before any client
2027
2027
// area size notifications (eg. WM_WINDOWPOSCHANGED and WM_SIZE). Let
2028
- // D3D paint immediately to let user see the latest result as soon as
2029
- // possible.
2030
- if (m_windowHandle && m_windowHandle->surfaceType () == QSurface::Direct3DSurface
2028
+ // D3D/VK paint immediately to let user see the latest result as soon
2029
+ // as possible.
2030
+ const auto & isTargetSurface = [](const QSurface::SurfaceType st){
2031
+ return st != QSurface::RasterSurface && st != QSurface::OpenGLSurface
2032
+ && st != QSurface::RasterGLSurface && st != QSurface::OpenVGSurface;
2033
+ };
2034
+ if (m_windowHandle && isTargetSurface (m_windowHandle->surfaceType ())
2031
2035
&& isDwmCompositionEnabled () && DynamicApis::instance ().pDwmFlush ) {
2032
2036
DynamicApis::instance ().pDwmFlush ();
2033
2037
}
You can’t perform that action at this time.
0 commit comments