diff src/event-Xt.c @ 347:7c94d56991e1 r21-1-3

Import from CVS: tag r21-1-3
author cvs
date Mon, 13 Aug 2007 10:53:48 +0200
parents 9ea74add5d37
children 30d2cfa1092a
line wrap: on
line diff
--- a/src/event-Xt.c	Mon Aug 13 10:53:20 2007 +0200
+++ b/src/event-Xt.c	Mon Aug 13 10:53:48 2007 +0200
@@ -2035,7 +2035,7 @@
   /* On a stream device (ie: noninteractive), bad things can happen. */
   if (EQ (CONSOLE_TYPE (con), Qtty)) {
     mousefd = CONSOLE_TTY_MOUSE_FD (con);
-    if (mousefd >= 0) {
+    if (mousefd >= 0 && filedesc_to_what_closure[mousefd]  ) {
       unselect_filedesc (mousefd);
     }
   }