]> git.eshelyaron.com Git - emacs.git/commitdiff
* src/term.c (init_tty) [HAVE_GPM]: Move mouse settings after set_tty_hooks.
authorJohan Bockgård <bojohan@gnu.org>
Sun, 28 Aug 2011 20:45:55 +0000 (22:45 +0200)
committerJohan Bockgård <bojohan@gnu.org>
Sun, 28 Aug 2011 20:45:55 +0000 (22:45 +0200)
src/ChangeLog
src/term.c

index 8f77f6a4fd9db1ae6e5f786baf9f716822b5d964..8bbfe4ee2c91e31685391f59e2128d0786716abd 100644 (file)
@@ -1,3 +1,8 @@
+2011-08-28  Johan Bockgård  <bojohan@gnu.org>
+
+       * term.c (init_tty) [HAVE_GPM]: Move mouse settings after
+       set_tty_hooks.
+
 2011-08-27  Eli Zaretskii  <eliz@gnu.org>
 
        * xdisp.c (move_it_to): Don't bail out early when reaching
index f3bf3a947cb328e3b568cd5bb916ea880f2910c1..8672a2417c81e12b2401ece2ef24d8388c2cd053 100644 (file)
@@ -3138,11 +3138,6 @@ init_tty (const char *name, const char *terminal_type, int must_succeed)
   encode_terminal_src_size = 0;
   encode_terminal_dst_size = 0;
 
-#ifdef HAVE_GPM
-  terminal->mouse_position_hook = term_mouse_position;
-  tty->mouse_highlight.mouse_face_window = Qnil;
-#endif
-
 
 #ifndef DOS_NT
   set_tty_hooks (terminal);
@@ -3402,6 +3397,11 @@ use the Bourne shell command `TERM=... export TERM' (C-shell:\n\
   tty->TN_max_colors = 16;  /* Required to be non-zero for tty-display-color-p */
 #endif /* DOS_NT */
 
+#ifdef HAVE_GPM
+  terminal->mouse_position_hook = term_mouse_position;
+  tty->mouse_highlight.mouse_face_window = Qnil;
+#endif
+
   terminal->kboard = (KBOARD *) xmalloc (sizeof (KBOARD));
   init_kboard (terminal->kboard);
   KVAR (terminal->kboard, Vwindow_system) = Qnil;