http://ftp.x.org/contrib/applications/xscreensaver-3.07.tar.gz
[xscreensaver] / driver / remote.c
index 31d4580cef1886604958892e6142226310eebcc1..6eb2cb1415c74f90efec78c0aa0ea14b69be0244 100644 (file)
 #include <stdlib.h>
 #include <sys/time.h>
 #include <sys/types.h>
-#include <sys/select.h>
+
+#ifdef HAVE_SYS_SELECT_H
+# include <sys/select.h>
+#endif /* HAVE_SYS_SELECT_H */
 
 #ifdef HAVE_UNISTD_H
 # include <unistd.h>
@@ -47,11 +50,6 @@ static Bool got_badwindow = False;
 static int
 BadWindow_ehandler (Display *dpy, XErrorEvent *error)
 {
-  /* When we notice a window being created, we spawn a timer that waits
-     30 seconds or so, and then selects events on that window.  This error
-     handler is used so that we can cope with the fact that the window
-     may have been destroyed <30 seconds after it was created.
-   */
   if (error->error_code == BadWindow)
     {
       got_badwindow = True;