Skip to content

Commit

Permalink
popdown the GtkMenu before detach GtkMenu
Browse files Browse the repository at this point in the history
If we detach a GtkMenu while it still being displayed, it would freezes entire panel as described in issue lxde#83, so we popdown the GtkMenu to avoid Freeze bug
  • Loading branch information
kurokawachan authored Feb 8, 2025
1 parent 8a269c2 commit b76c6e7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugins/task-button.c
Original file line number Diff line number Diff line change
Expand Up @@ -1544,6 +1544,7 @@ void task_button_update_windows_list(TaskButton *button, Window *list, gint n)
for (l = menu_list; l; l = l->next)
{
GtkMenu *menu = GTK_MENU(l->data);

gtk_menu_popdown(menu);
gtk_menu_detach(menu);
}
Expand Down

0 comments on commit b76c6e7

Please sign in to comment.