diff src/event-unixoid.c @ 153:25f70ba0133c r20-3b3

Import from CVS: tag r20-3b3
author cvs
date Mon, 13 Aug 2007 09:38:25 +0200
parents 376386a54a3c
children 3d6bfa290dbd
line wrap: on
line diff
--- a/src/event-unixoid.c	Mon Aug 13 09:37:21 2007 +0200
+++ b/src/event-unixoid.c	Mon Aug 13 09:38:25 2007 +0200
@@ -39,6 +39,11 @@
 #include "sysproc.h"		/* select stuff */
 #include "systime.h"
 
+#ifdef HAVE_GPM
+#include "gpmevent.h"
+#include <gpm.h>
+#endif
+
 /* Mask of bits indicating the descriptors that we wait for input on.
    These work as follows:
 
@@ -78,6 +83,12 @@
 
   XSETCONSOLE (console, con);
 
+#ifdef HAVE_GPM
+  if (fd == CONSOLE_TTY_MOUSE_FD (con)) {
+    return (handle_gpm_read (event,con,fd));
+  }
+#endif
+
   nread = read (fd, &ch, 1);
   if (nread <= 0)
     {