If we want to make the GPM code into a module, we'd have to move the
following code out of frame-tty.c, and into gpmevent.c
#ifdef HAVE_GPM
CONSOLE_HAS_METHOD (tty, get_mouse_position);
CONSOLE_HAS_METHOD (tty, set_mouse_position);
#endif
Also, I don't see a clean way to do this from device-tty.c:
This is from tty_asynch_device_change():
#ifdef HAVE_GPM
/* We need to tell GPM how big our screen is now
** I am pretty sure the GPM library will get incredibly confused
** if you try to connect to more than one mouse-capable device,
** so I don't think it will cause any more damage in that case.
*/
gpm_mx = width;
gpm_my = height;
#endif
-bp