Truly independent web browser
UI/Qt: Raise the bookmarks bar above newly shown native pages
Timothy Flynn8e8a5973e91a
diff --git a/UI/Qt/BookmarksBar.cpp b/UI/Qt/BookmarksBar.cppindex 781f1e89a56..553d37d7e0c 100644--- a/UI/Qt/BookmarksBar.cpp+++ b/UI/Qt/BookmarksBar.cpp@@ -49,6 +49,7 @@#include <QToolButton>#include <QVariantAnimation>#include <QWheelEvent>+#include <QWindow>#include <QtMath>namespace Ladybird {@@ -1629,9 +1630,15 @@ void BookmarksBarContainer::update_geometry()m_bar->setGeometry(0, height - full_height, width(), full_height);set_view_overlay_height(on_hover && visible ? height : 0);setVisible(visible);- if (on_hover && visible)++ if (on_hover && visible) {raise();+ // A newly shown page can place its native view above the bar even when the bar is already the topmost widget.+ if (auto* handle = windowHandle())+ handle->raise();+ }+#if defined(AK_OS_MACOS)ensure_appkit_window_is_exposed(*this);#endif