diff options
author | Guenter Geiger <ggeiger@users.sourceforge.net> | 2004-10-16 20:31:50 +0000 |
---|---|---|
committer | Guenter Geiger <ggeiger@users.sourceforge.net> | 2004-10-16 20:31:50 +0000 |
commit | 8c20c055a01176a19506a38abb7e0fec77721545 (patch) | |
tree | ccfe89223e66354712f3e73889f9937731fd7223 /popup | |
parent | b49b0d6bbd592a0c0106bd2738999f39bcbb8aaa (diff) |
Found workaround for problem when minimizing windows
svn path=/trunk/externals/bbogart/; revision=2108
Diffstat (limited to 'popup')
-rw-r--r-- | popup/popup.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); |