maybe i should have tried opening a submenu too

This commit is contained in:
Mikael Magnusson 2005-09-14 17:40:47 +00:00
parent fa32adf16c
commit 9609c7f5ec
2 changed files with 1 additions and 1 deletions

View file

@ -306,7 +306,6 @@ void menu_show(gchar *name, gint x, gint y, ObClient *client)
else
menu_frame_move(frame,
x - ob_rr_theme->bwidth, y - ob_rr_theme->bwidth);
frame->monitor = 0;
for (i = 0; i < screen_num_monitors; ++i) {
Rect *a = screen_physical_area_monitor(i);
if (RECT_CONTAINS(*a, frame->area.x, frame->area.y)) {

View file

@ -605,6 +605,7 @@ gboolean menu_frame_show(ObMenuFrame *self, ObMenuFrame *parent)
}
if (parent) {
self->monitor = parent->monitor;
if (parent->child)
menu_frame_hide(parent->child);
parent->child = self;