Index: openbox/screen.c
===================================================================
RCS file: /cvs/cvsroot/openbox/openbox/screen.c,v
retrieving revision 1.121
diff -p -u -r1.121 screen.c
--- openbox/screen.c	7 Oct 2005 17:00:35 -0000	1.121
+++ openbox/screen.c	20 Apr 2006 15:43:43 -0000
@@ -176,7 +176,16 @@ gboolean screen_annex()
     xerror_set_ignore(TRUE);
     xerror_occured = FALSE;
     XSelectInput(ob_display, RootWindow(ob_display, ob_screen),
-                 ROOT_EVENTMASK);
+                 
+                SubstructureRedirectMask | SubstructureNotifyMask |
+                ColormapChangeMask | PropertyChangeMask |
+                LeaveWindowMask | EnterWindowMask |
+                KeyPressMask | KeyReleaseMask |
+                FocusChangeMask | StructureNotifyMask 
+#ifdef HAVE_COMPOSITE_EXTENSIONS
+                ExposureMask |
+#endif
+		);
     xerror_set_ignore(FALSE);
     if (xerror_occured) {
         g_warning("A window manager is already running on screen %d",

