cache pipe menus without crashing!
This commit is contained in:
parent
a1f882b264
commit
b8e78bba16
2 changed files with 3 additions and 4 deletions
|
@ -424,6 +424,9 @@ void menu_show(gchar *name, gint x, gint y, gint button, ObClient *client)
|
|||
|
||||
menu_frame_hide_all();
|
||||
|
||||
/* clear the pipe menus when showing a new menu */
|
||||
menu_clear_pipe_caches();
|
||||
|
||||
frame = menu_frame_new(self, 0, client);
|
||||
if (!menu_frame_show_topmenu(frame, x, y, button))
|
||||
menu_frame_free(frame);
|
||||
|
|
|
@ -1058,8 +1058,6 @@ void menu_frame_hide_all()
|
|||
}
|
||||
if ((it = g_list_last(menu_frame_visible)))
|
||||
menu_frame_hide(it->data);
|
||||
|
||||
menu_clear_pipe_caches();
|
||||
}
|
||||
|
||||
void menu_frame_hide_all_client(ObClient *client)
|
||||
|
@ -1070,8 +1068,6 @@ void menu_frame_hide_all_client(ObClient *client)
|
|||
if (f->client == client)
|
||||
menu_frame_hide(f);
|
||||
}
|
||||
|
||||
menu_clear_pipe_caches();
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue