"]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.
This commit is contained in:
parent
3ffd71cf35
commit
13e64aa103
@ -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));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user