Module Name:    xsrc
Committed By:   wiz
Date:           Sat Jan 11 14:38:39 UTC 2025

Modified Files:
        xsrc/external/mit/twm/dist/src: events.c

Log Message:
twm: fix sub-menu handling

Patch from RVP.

Fixes PR 58979.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.5 -r1.2 xsrc/external/mit/twm/dist/src/events.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: xsrc/external/mit/twm/dist/src/events.c
diff -u xsrc/external/mit/twm/dist/src/events.c:1.1.1.5 xsrc/external/mit/twm/dist/src/events.c:1.2
--- xsrc/external/mit/twm/dist/src/events.c:1.1.1.5	Mon Jul 11 09:08:07 2022
+++ xsrc/external/mit/twm/dist/src/events.c	Sat Jan 11 14:38:39 2025
@@ -2185,7 +2185,9 @@ HandleLeaveNotify(void)
         }
         if (Scr->FocusRoot) {
 
-            if (Event.xcrossing.detail != NotifyInferior) {
+            if (Event.xcrossing.detail != NotifyInferior &&
+                Event.xcrossing.detail != NotifyVirtual &&
+                Event.xcrossing.detail != NotifyNonlinearVirtual) {
 
                 /*
                  * Scan for EnterNotify events to see if we can avoid some

Reply via email to