[gtk+/wip/attachment-rectangle] menu: only set type hint if unmapped



commit eba621fb8e0f0c776b734f7a68a2bc3b20ec30e6
Author: William Hua <william hua canonical com>
Date:   Wed Aug 26 14:08:12 2015 +0100

    menu: only set type hint if unmapped

 gtk/gtkmenu.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkmenu.c b/gtk/gtkmenu.c
index c1c10ea..9535c90 100644
--- a/gtk/gtkmenu.c
+++ b/gtk/gtkmenu.c
@@ -4569,8 +4569,10 @@ gtk_menu_position (GtkMenu  *menu,
   GdkRectangle allocation;
 
   gtk_widget_realize (priv->toplevel);
+
   if (!gtk_widget_get_mapped (priv->toplevel))
     gtk_window_set_type_hint (GTK_WINDOW (priv->toplevel), GDK_WINDOW_TYPE_HINT_POPUP_MENU);
+
   menu_window = gtk_widget_get_window (priv->toplevel);
 
   if (menu_window)


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