Truly independent web browser
UI/Qt: Stop clearing the area under the page's native window
Andreas Kling94467495e0f0
diff --git a/UI/Qt/NativeWindowContainer.cpp b/UI/Qt/NativeWindowContainer.cppindex c6b11fc68e8..7ceb4dbc905 100644--- a/UI/Qt/NativeWindowContainer.cpp+++ b/UI/Qt/NativeWindowContainer.cpp@@ -52,6 +52,14 @@ private:m_container.setFocus(Qt::MouseFocusReason);break;+ case QEvent::Paint:+ // NB: QWindowContainer clears its whole area to transparent on platforms that may stack native child+ // windows below their parent. Ours are always above it, and the clear would only hide the host's own+ // painting wherever the native window has nothing on screen yet.+ if (watched == &m_container)+ return true;+ break;+default:break;}