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
This commit is contained in:
Matthias Clasen 2003-11-12 22:49:02 +00:00
parent e71bcc8487
commit bdb8bd13db
6 changed files with 21 additions and 6 deletions

View File

@ -1,7 +1,10 @@
Wed Nov 12 21:40:10 2003 Matthias Clasen <maclas@gmx.de>
Changes to improve menu positioning on Xinerama (#108328):
Changes to improve menu positioning on Xinerama (#108328, #126150):
* gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Use the event
window of the menuitem to determine the monitor. This fixes some
* gtk/gtkmenu.c (struct _GtkMenuPrivate): Add a menu_num field
to store the monitor on which the menu is to be positioned.

View File

@ -1,7 +1,10 @@
Wed Nov 12 21:40:10 2003 Matthias Clasen <maclas@gmx.de>
Changes to improve menu positioning on Xinerama (#108328):
Changes to improve menu positioning on Xinerama (#108328, #126150):
* gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Use the event
window of the menuitem to determine the monitor. This fixes some
* gtk/gtkmenu.c (struct _GtkMenuPrivate): Add a menu_num field
to store the monitor on which the menu is to be positioned.

View File

@ -1,7 +1,10 @@
Wed Nov 12 21:40:10 2003 Matthias Clasen <maclas@gmx.de>
Changes to improve menu positioning on Xinerama (#108328):
Changes to improve menu positioning on Xinerama (#108328, #126150):
* gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Use the event
window of the menuitem to determine the monitor. This fixes some
* gtk/gtkmenu.c (struct _GtkMenuPrivate): Add a menu_num field
to store the monitor on which the menu is to be positioned.

View File

@ -1,7 +1,10 @@
Wed Nov 12 21:40:10 2003 Matthias Clasen <maclas@gmx.de>
Changes to improve menu positioning on Xinerama (#108328):
Changes to improve menu positioning on Xinerama (#108328, #126150):
* gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Use the event
window of the menuitem to determine the monitor. This fixes some
* gtk/gtkmenu.c (struct _GtkMenuPrivate): Add a menu_num field
to store the monitor on which the menu is to be positioned.

View File

@ -1,7 +1,10 @@
Wed Nov 12 21:40:10 2003 Matthias Clasen <maclas@gmx.de>
Changes to improve menu positioning on Xinerama (#108328):
Changes to improve menu positioning on Xinerama (#108328, #126150):
* gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Use the event
window of the menuitem to determine the monitor. This fixes some
* gtk/gtkmenu.c (struct _GtkMenuPrivate): Add a menu_num field
to store the monitor on which the menu is to be positioned.

View File

@ -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);