better placement for top level menus under the mouse cursor. middle placement is not used for this now. it was behaving differently than submenus so i'd like to have some consistency

This commit is contained in:
Dana Jansens 2007-03-25 17:19:41 +00:00
parent afc015158a
commit ee58f96a84

View file

@ -193,13 +193,8 @@ void menu_frame_place_topmenu(ObMenuFrame *self, gint x, gint y)
x = self->client->frame->area.x + self->client->frame->size.left;
y = self->client->frame->area.y + self->client->frame->size.top;
} else {
if (config_menu_middle) {
x -= self->area.width / 2;
y -= self->title_h*3/4;
} else {
x -= ob_rr_theme->mbwidth;
y -= ob_rr_theme->mbwidth;
}
x -= ob_rr_theme->mbwidth;
y -= ob_rr_theme->mbwidth + self->title_h;
}
menu_frame_move(self, x, y);
}