diff options
author | fvogel <fvogelnew1@free.fr> | 2016-05-01 19:51:15 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2016-05-01 19:51:15 (GMT) |
commit | ede13558f13645c01b9dff12f05b15d6e0435995 (patch) | |
tree | b4628d9dc96cf310e71ee2510074a7e570cd805b /generic/tkListbox.c | |
parent | caca7822e575fd0943b0e41f85ffccfa37f02690 (diff) | |
parent | d9629dd3f036632bf29ca7792d85a0fd346e8cb9 (diff) | |
download | tk-ede13558f13645c01b9dff12f05b15d6e0435995.zip tk-ede13558f13645c01b9dff12f05b15d6e0435995.tar.gz tk-ede13558f13645c01b9dff12f05b15d6e0435995.tar.bz2 |
Fixed [b362182e45] - Generation of virtual events through Tk_HandleEvent is unsafe
Diffstat (limited to 'generic/tkListbox.c')
-rw-r--r-- | generic/tkListbox.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/generic/tkListbox.c b/generic/tkListbox.c index c7effdd..b059727 100644 --- a/generic/tkListbox.c +++ b/generic/tkListbox.c @@ -3223,16 +3223,7 @@ static void GenerateListboxSelectEvent( Listbox *listPtr) /* Information about widget. */ { - union {XEvent general; XVirtualEvent virtual;} event; - - memset(&event, 0, sizeof(event)); - event.general.xany.type = VirtualEvent; - event.general.xany.serial = NextRequest(Tk_Display(listPtr->tkwin)); - event.general.xany.send_event = False; - event.general.xany.window = Tk_WindowId(listPtr->tkwin); - event.general.xany.display = Tk_Display(listPtr->tkwin); - event.virtual.name = Tk_GetUid("ListboxSelect"); - Tk_HandleEvent(&event.general); + TkSendVirtualEvent(listPtr->tkwin, "ListboxSelect", NULL); } /* |