Mercurial > hg > xemacs-beta
comparison src/device-tty.c @ 412:697ef44129c6 r21-2-14
Import from CVS: tag r21-2-14
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:20:41 +0200 |
parents | 74fd4e045ea6 |
children |
comparison
equal
deleted
inserted
replaced
411:12e008d41344 | 412:697ef44129c6 |
---|---|
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 |
149 || CONSOLE_TTY_DATA (con)->height != height)) | 153 || CONSOLE_TTY_DATA (con)->height != height)) |
150 { | 154 { |
151 CONSOLE_TTY_DATA (con)->width = width; | 155 CONSOLE_TTY_DATA (con)->width = width; |
152 CONSOLE_TTY_DATA (con)->height = height; | 156 CONSOLE_TTY_DATA (con)->height = height; |
153 | 157 |
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 | |
154 for (tail = DEVICE_FRAME_LIST (d); | 167 for (tail = DEVICE_FRAME_LIST (d); |
155 !NILP (tail); | 168 !NILP (tail); |
156 tail = XCDR (tail)) | 169 tail = XCDR (tail)) |
157 { | 170 { |
158 struct frame *f = XFRAME (XCAR (tail)); | 171 struct frame *f = XFRAME (XCAR (tail)); |