diff --git a/src/plugins/platforms/windows/qwindowswindow.cpp b/src/plugins/platforms/windows/qwindowswindow.cpp index 08ff712..7ddc52c 100644 --- a/src/plugins/platforms/windows/qwindowswindow.cpp +++ b/src/plugins/platforms/windows/qwindowswindow.cpp @@ -1304,13 +1304,18 @@ void QWindowsWindow::releaseDC() } bool QWindowsWindow::handleWmPaint(HWND hwnd, UINT message, - WPARAM, LPARAM) + WPARAM w, LPARAM l) { + qDebug() << __FUNCTION__ << message << w << l; // Ignore invalid update bounding rectangles - if (!GetUpdateRect(m_data.hwnd, 0, FALSE)) + if (!GetUpdateRect(m_data.hwnd, 0, FALSE)) { + qDebug() << __FUNCTION__ << "returns GetUpdateRect"; return false; - if (message == WM_ERASEBKGND) // Backing store - ignored. + } + if (message == WM_ERASEBKGND) { // Backing store - ignored. + qDebug() << __FUNCTION__ << "returns WM_ERASEBKGND"; return true; + } PAINTSTRUCT ps; // Observed painting problems with Aero style disabled (QTBUG-7865). @@ -1322,7 +1327,9 @@ bool QWindowsWindow::handleWmPaint(HWND hwnd, UINT message, // If the a window is obscured by another window (such as a child window) // we still need to send isExposed=true, for compatibility. // Our tests depend on it. - fireExpose(QRegion(qrectFromRECT(ps.rcPaint)), true); + const QRect r = qrectFromRECT(ps.rcPaint); + qDebug() <<__FUNCTION__ << r; + fireExpose(QRegion(r), true); if (!QWindowsContext::instance()->asyncExpose()) QWindowSystemInterface::flushWindowSystemEvents();