From 8c20c055a01176a19506a38abb7e0fec77721545 Mon Sep 17 00:00:00 2001 From: Guenter Geiger Date: Sat, 16 Oct 2004 20:31:50 +0000 Subject: Found workaround for problem when minimizing windows svn path=/trunk/externals/bbogart/; revision=2108 --- popup/popup.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/popup/popup.c b/popup/popup.c index 469d34d..3f76e77 100644 --- a/popup/popup.c +++ b/popup/popup.c @@ -135,6 +135,8 @@ static void create_widget(t_popup *x, t_glist *glist) x->x_rect_height = x->x_height+2; /* Create menubutton and empty menu widget -- maybe the menu should be created elseware?*/ + /* Seems we have to delete the widget in case it already exists */ + sys_vgui("destroy .x%x.c.s%x\n",glist_getcanvas(glist),x); sys_vgui("set %xw .x%x.c.s%x ; menubutton $%xw -relief raised -background \"%s\" -text \"%s\" -direction flush -menu $%xw.menu ; menu $%xw.menu -tearoff 0\n", x,canvas,x,x,x->x_colour->s_name,x->x_name->s_name,x,x); -- cgit v1.2.1