From bdb8bd13db56db682f029ce4f5224e148e9457e7 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Wed, 12 Nov 2003 22:49:02 +0000 Subject: Use the event window of the menuitem to determine the monitor. This fixes * gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Use the event window of the menuitem to determine the monitor. This fixes some --- gtk/gtkmenuitem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gtk/gtkmenuitem.c') diff --git a/gtk/gtkmenuitem.c b/gtk/gtkmenuitem.c index 312c51107..3cb2b948f 100644 --- a/gtk/gtkmenuitem.c +++ b/gtk/gtkmenuitem.c @@ -1024,7 +1024,7 @@ gtk_menu_item_position_menu (GtkMenu *menu, theight = GTK_WIDGET (menu)->requisition.height; screen = gtk_widget_get_screen (widget); - monitor_num = gdk_screen_get_monitor_at_window (screen, widget->window); + monitor_num = gdk_screen_get_monitor_at_window (screen, menu_item->event_window); if (monitor_num < 0) monitor_num = 0; gdk_screen_get_monitor_geometry (screen, monitor_num, &monitor); -- cgit v1.2.1