(Fterm_open_connection): Add comment.
authorStefan Monnier <monnier@iro.umontreal.ca>
Thu, 27 Sep 2007 21:19:54 +0000 (21:19 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Thu, 27 Sep 2007 21:19:54 +0000 (21:19 +0000)
src/term.c

index ce3b49e..62f7a4d 100644 (file)
@@ -2981,6 +2981,9 @@ We only support Gpm on one tty at a time.  */)
   else
     {
       gpm_tty = tty;
+      /* `init_sys_modes' arranges for mouse movements sent through gpm_fd
+        to generate SIGIOs.  Apparently we need to call reset_sys_modes
+        before calling init_sys_modes.  */
       reset_sys_modes (tty);
       init_sys_modes (tty);
       add_gpm_wait_descriptor (gpm_fd);