X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fmenuframe.c;h=43d4058522566ffdb5161aae0483829bead425ad;hb=fa32adf16ce190fd20fc75cbe37551fc1cc3f89f;hp=04cf7ebeade062880ec154040f19302b93be471e;hpb=9df57ff1b5c6f2bc631253cc8a51ec3af7d24d7e;p=chaz%2Fopenbox 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);