"Alastair J. Houghton" <ajhoughton(a)lineone.net> writes:
Here's a patchette to update the parameter lists for a couple of
the
functions in gpmevent.c. The functions themselves look rather dubious to
me - perhaps someone with knowledge of GPM could take a look at them and
maybe do something about them?
I wrote the GPM code, so I'll take a crack at explaining why they do what
they do. :)
The selection handling is actually NOT part of the GPM library. It
populates the selection, but there is no 'get the selection' call
provided. gpmevent.c does the TIOCLINUX ioctl manually and grabs the
results.
There is no way to figure out whether the selection exists (at least not in
2.2.x or 2.3.x that I've seen), so we always say there is a selection
available.
The own_selection stuff is not used at all, it is just a placeholder with
the comment about why we cannot implement it. Perhaps it will eventually
motivate someone to fix GPM / linux / xemacs to do this nicely. But I
won't hold my breath.
The linux selection handling is a crock in a lot of ways. See the comment
in gpm_next_event_cb about the console permissions. :)
-Bill P.