[gtk/present-toplevel-2: 26/83] headerbar: Stop looking at type hints



commit 66669e05735157239ba3d321160ac68e93777795
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Mar 6 12:55:15 2020 -0800

    headerbar: Stop looking at type hints

 gtk/gtkheaderbar.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkheaderbar.c b/gtk/gtkheaderbar.c
index ca56f4fba1..46454f8f68 100644
--- a/gtk/gtkheaderbar.c
+++ b/gtk/gtkheaderbar.c
@@ -346,9 +346,8 @@ _gtk_header_bar_update_window_buttons (GtkHeaderBar *bar)
   else
     menu = NULL;
 
-  is_sovereign_window = (!gtk_window_get_modal (window) &&
-                          gtk_window_get_transient_for (window) == NULL &&
-                          gtk_window_get_type_hint (window) == GDK_SURFACE_TYPE_HINT_NORMAL);
+  is_sovereign_window = !gtk_window_get_modal (window) &&
+                         gtk_window_get_transient_for (window) == NULL;
 
   tokens = g_strsplit (layout_desc, ":", 2);
   if (tokens)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]