From a18d7c4c914c743c94b55c869a355b051bbdf01f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Niels=20M=C3=B6ller?= <nisse@lysator.liu.se>
Date: Thu, 12 Feb 1998 10:01:05 +0100
Subject: [PATCH] Changed event handling.

Rev: lib/modules/Protocols.pmod/X.pmod/Xlib.pmod:1.26
---
 lib/modules/Protocols.pmod/X.pmod/Xlib.pmod | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/lib/modules/Protocols.pmod/X.pmod/Xlib.pmod b/lib/modules/Protocols.pmod/X.pmod/Xlib.pmod
index a43cc81299..edcc293c0f 100644
--- a/lib/modules/Protocols.pmod/X.pmod/Xlib.pmod
+++ b/lib/modules/Protocols.pmod/X.pmod/Xlib.pmod
@@ -254,12 +254,13 @@ class Display
     if (event->wid && (w = lookup_id(event->wid))
 	&& (a = (w->event_callbacks[event->type])))
       {
-	foreach(a, function f)
+	foreach(a, array pair)
 	  {
-	    if (!(event = f(event, this_object())))
+	    if (!(event = pair[1](event, this_object())))
 	      return;
 	  }
 	// FIXME: Should event be forwarded to parent or not?
+	// No, let the widget's signal() function handle that.
       }
     else
       if (misc_event_handler)
-- 
GitLab