comparison src/device-tty.c @ 398:74fd4e045ea6 r21-2-29

Import from CVS: tag r21-2-29
author cvs
date Mon, 13 Aug 2007 11:13:30 +0200
parents e11d67e05968
children 697ef44129c6
comparison
equal deleted inserted replaced
397:f4aeb21a5bad 398:74fd4e045ea6
36 #include "redisplay.h" 36 #include "redisplay.h"
37 #include "sysdep.h" 37 #include "sysdep.h"
38 38
39 #include "syssignal.h" /* for SIGWINCH */ 39 #include "syssignal.h" /* for SIGWINCH */
40 40
41 #ifdef HAVE_GPM
42 #include <gpm.h>
43 #endif
44
45 #include <errno.h> 41 #include <errno.h>
46 42
47 Lisp_Object Qinit_pre_tty_win, Qinit_post_tty_win; 43 Lisp_Object Qinit_pre_tty_win, Qinit_post_tty_win;
48 44
49 45
153 || CONSOLE_TTY_DATA (con)->height != height)) 149 || CONSOLE_TTY_DATA (con)->height != height))
154 { 150 {
155 CONSOLE_TTY_DATA (con)->width = width; 151 CONSOLE_TTY_DATA (con)->width = width;
156 CONSOLE_TTY_DATA (con)->height = height; 152 CONSOLE_TTY_DATA (con)->height = height;
157 153
158 #ifdef HAVE_GPM
159 /* We need to tell GPM how big our screen is now
160 ** I am pretty sure the GPM library will get incredibly confused
161 ** if you try to connect to more than one mouse-capable device,
162 ** so I don't think it will cause any more damage in that case.
163 */
164 gpm_mx = width;
165 gpm_my = height;
166 #endif
167 for (tail = DEVICE_FRAME_LIST (d); 154 for (tail = DEVICE_FRAME_LIST (d);
168 !NILP (tail); 155 !NILP (tail);
169 tail = XCDR (tail)) 156 tail = XCDR (tail))
170 { 157 {
171 struct frame *f = XFRAME (XCAR (tail)); 158 struct frame *f = XFRAME (XCAR (tail));