[gtk/gtk-3-24] "]Quartz] Set the popup menu type hint before realizing the popup."
- From: John Ralls <jralls src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/gtk-3-24] "]Quartz] Set the popup menu type hint before realizing the popup."
- Date: Sat, 22 Jun 2019 20:57:11 +0000 (UTC)
commit 13e64aa1032ad6c41f8061a0b64e54ef7e970344
Author: John Ralls <jralls ceridwen us>
Date: Sun Mar 24 16:08:14 2019 -0700
"]Quartz] Set the popup menu type hint before realizing the popup."
Otherwise the native window gets created with GDK_TYPE_HINT_NORMAL
and in fullscreen appears on its own screen or tab instead of over
the combo like it's supposed to.
gtk/gtkmenu.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkmenu.c b/gtk/gtkmenu.c
index f12deb52ff..32ed9b3f45 100644
--- a/gtk/gtkmenu.c
+++ b/gtk/gtkmenu.c
@@ -5268,15 +5268,15 @@ gtk_menu_position (GtkMenu *menu,
!!(anchor_hints & GDK_ANCHOR_RESIZE_X),
!!(anchor_hints & GDK_ANCHOR_RESIZE_Y));
+ if (!gtk_widget_get_visible (priv->toplevel))
+ gtk_window_set_type_hint (GTK_WINDOW (priv->toplevel), priv->menu_type_hint);
+
/* Realize so we have the proper width and height to figure out
* the right place to popup the menu.
*/
gtk_widget_realize (priv->toplevel);
gtk_window_move_resize (GTK_WINDOW (priv->toplevel));
- if (!gtk_widget_get_visible (priv->toplevel))
- gtk_window_set_type_hint (GTK_WINDOW (priv->toplevel), priv->menu_type_hint);
-
if (text_direction == GTK_TEXT_DIR_NONE)
text_direction = gtk_widget_get_direction (GTK_WIDGET (menu));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]