Mercurial > hg > xemacs-beta
comparison src/device-tty.c @ 155:43dd3413c7c7 r20-3b4
Import from CVS: tag r20-3b4
author | cvs |
---|---|
date | Mon, 13 Aug 2007 09:39:39 +0200 |
parents | 538048ae2ab8 |
children | 3d6bfa290dbd |
comparison
equal
deleted
inserted
replaced
154:94141801dd7e | 155:43dd3413c7c7 |
---|---|
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 | |
41 #include <errno.h> | 45 #include <errno.h> |
42 | 46 |
43 Lisp_Object Qinit_pre_tty_win, Qinit_post_tty_win; | 47 Lisp_Object Qinit_pre_tty_win, Qinit_post_tty_win; |
44 | 48 |
45 | 49 |
151 || CONSOLE_TTY_DATA (con)->height != height)) | 155 || CONSOLE_TTY_DATA (con)->height != height)) |
152 { | 156 { |
153 CONSOLE_TTY_DATA (con)->width = width; | 157 CONSOLE_TTY_DATA (con)->width = width; |
154 CONSOLE_TTY_DATA (con)->height = height; | 158 CONSOLE_TTY_DATA (con)->height = height; |
155 | 159 |
160 #ifdef HAVE_GPM | |
161 /* We need to tell GPM how big our screen is now | |
162 ** I am pretty sure the GPM library will get incredibly confused | |
163 ** if you try to connect to more than one mouse-capable device, | |
164 ** so I don't think it will cause any more damage in that case. | |
165 */ | |
166 gpm_mx = width; | |
167 gpm_my = height; | |
168 #endif | |
156 for (tail = DEVICE_FRAME_LIST (d); | 169 for (tail = DEVICE_FRAME_LIST (d); |
157 !NILP (tail); | 170 !NILP (tail); |
158 tail = XCDR (tail)) | 171 tail = XCDR (tail)) |
159 { | 172 { |
160 struct frame *f = XFRAME (XCAR (tail)); | 173 struct frame *f = XFRAME (XCAR (tail)); |