Skip to content

Commit 15b7a43

Browse files
committed
Fix WebEngineView flashing when closing popup
Closing a popup (eg. HTML select element) might cause WebEngineView to flash on macOS. This seems to be related to the window's NSPanel destruction and seems to appear only if the Qt::ToolTip window flag is set. Fixes: QTBUG-77072 Fixes: QTBUG-78084 Change-Id: I72af67ee97304278870b312482f8f9058ecd1233 Reviewed-by: Jüri Valdmann <[email protected]> (cherry picked from commit 2f72083)
1 parent 99b27e9 commit 15b7a43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/webengine/render_widget_host_view_qt_delegate_quickwindow.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ namespace QtWebEngineCore {
4747
RenderWidgetHostViewQtDelegateQuickWindow::RenderWidgetHostViewQtDelegateQuickWindow(RenderWidgetHostViewQtDelegate *realDelegate)
4848
: m_realDelegate(realDelegate)
4949
{
50-
setFlags(Qt::ToolTip | Qt::FramelessWindowHint | Qt::WindowDoesNotAcceptFocus);
50+
setFlags(Qt::Tool | Qt::FramelessWindowHint | Qt::WindowDoesNotAcceptFocus);
5151
}
5252

5353
RenderWidgetHostViewQtDelegateQuickWindow::~RenderWidgetHostViewQtDelegateQuickWindow()

0 commit comments

Comments
 (0)