diff -ur qt-x11-free-3.1.1.orig/src/kernel/qapplication_x11.cpp qt-x11-free-3.1.1/src/kernel/qapplication_x11.cpp
--- qt-x11-free-3.1.1.orig/src/kernel/qapplication_x11.cpp	Mon Dec  9 18:40:39 2002
+++ qt-x11-free-3.1.1/src/kernel/qapplication_x11.cpp	Mon Dec 23 13:31:59 2002
@@ -3054,9 +3054,6 @@
 	break;
     }
 
-    if ( qt_x11EventFilter(event) )		// send through app filter
-	return 1;
-
     QETWidget *widget = (QETWidget*)QWidget::find( (WId)event->xany.window );
 
     if ( wPRmapper ) {				// just did a widget reparent?
@@ -3173,6 +3170,9 @@
 	return 1;
     }
 
+    if ( qt_x11EventFilter(event) )		// send through app filter
+	return 1;
+
     if ( event->type == MappingNotify ) {	// keyboard mapping changed
 	XRefreshKeyboardMapping( &event->xmapping );
 	return 0;
