From fa32adf16ce190fd20fc75cbe37551fc1cc3f89f Mon Sep 17 00:00:00 2001 From: Mikael Magnusson Date: Wed, 14 Sep 2005 17:05:53 +0000 Subject: fix menus to show on the screen the mouse cursor spawned them from --- openbox/menuframe.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'openbox/menuframe.c') diff --git a/openbox/menuframe.c b/openbox/menuframe.c index 04cf7ebe..43d40585 100644 --- a/openbox/menuframe.c +++ b/openbox/menuframe.c @@ -191,12 +191,7 @@ void menu_frame_move_on_screen(ObMenuFrame *self) gint dx = 0, dy = 0; gint pos, half; - for (i = 0; i < screen_num_monitors; ++i) { - a = screen_physical_area_monitor(i); - if (RECT_INTERSECTS_RECT(*a, self->area)) - break; - } - if (!a) a = screen_physical_area_monitor(0); + a = screen_physical_area_monitor(self->monitor); half = g_list_length(self->entries) / 2; pos = g_list_index(self->entries, self->selected); -- cgit v1.2.3