From c7107e10384eea4b48b7cd543cf90b9c45e63596 Mon Sep 17 00:00:00 2001 From: Alice Mikhaylenko Date: Mon, 16 Dec 2024 23:17:36 +0400 Subject: [PATCH] header-bar: Ignore split views outside sheets Otherwise we risk missing the close button if, say, it's on the left and the sheet is in the right pane - like in libadwaita demo. --- src/adw-header-bar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/adw-header-bar.c b/src/adw-header-bar.c index 5e66cea64..6b4c33b80 100644 --- a/src/adw-header-bar.c +++ b/src/adw-header-bar.c @@ -543,7 +543,7 @@ adw_header_bar_root (GtkWidget *widget) GtkWidget *split_view = NULL; gboolean is_sidebar = FALSE; - if (GTK_IS_NATIVE (parent)) + if (GTK_IS_NATIVE (parent) || parent == self->sheet) break; if (ADW_IS_NAVIGATION_SPLIT_VIEW (parent)) { -- GitLab