john@labtam.oz (John Carey) (05/07/90)
Has been sent to mit X Window System Bug Report xbugs@expo.lcs.mit.edu VERSION: R4 CLIENT MACHINE and OPERATING SYSTEM: Labtam Delta/386 running System V Release 3.2 DISPLAY TYPE: Labtam Xengine (all models) WINDOW MANAGER: twm AREA: twm SYNOPSIS: twm submenu's item will sometimes be left highlighted after use +FIX DESCRIPTION: As above - more noticable when Labtam twm patches using PointerMotionHints are installed. REPEAT BY: Use submenus - and then re-expose same submenu - some times an item will be left highlighted from the previous time that the sub-menu was used SAMPLE FIX: Here is the patch -------------------------------------------------------------------------------- *** events.c_old Thu May 3 16:46:03 1990 --- events.c Thu May 3 16:45:22 1990 *************** *** 1949,1955 **** XUnmapWindow (dpy, ActiveMenu->w); ActiveMenu->mapped = UNMAPPED; UninstallRootColormap (); ! if (ActiveItem) ActiveItem->state = 0; ActiveItem = NULL; ActiveMenu = mr; MenuDepth--; --- 1949,1958 ---- XUnmapWindow (dpy, ActiveMenu->w); ActiveMenu->mapped = UNMAPPED; UninstallRootColormap (); ! if (ActiveItem) { ! ActiveItem->state = 0; ! PaintEntry (ActiveMenu, ActiveItem, False); ! } ActiveItem = NULL; ActiveMenu = mr; MenuDepth--;