[gpm]Re: [links-discuss] GPM patch for Links on framebuffer
Mikulas Patocka
mikulas@artax.karlin.mff.cuni.cz
Sat, 8 Jun 2002 15:17:59 +0200 (CEST)
This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
Send mail to mime@docserver.cac.washington.edu for more info.
--1908636959-1031222723-1023542279=:6098
Content-Type: TEXT/PLAIN; charset=US-ASCII
On Sat, 8 Jun 2002, Mikulas Patocka wrote:
> Here it is -- patch for reporting mouse movement in pixels.
>
> When application sets bit GPM_SMOOTH in both defaultMask and eventMask,
> gpm reports dx and dy in pixels, not in characters (and acknowledges it by
> setting GPM_SMOOTH in event.type).
>
> Included is also patch for framebuffer.c in links to take adventage of
> this feature.
>
> GPM-UNLINK-PID is a simple fix for bug, that gpm doesn't delete gpm.pid on
> errors, thus preventing next starts of gpm.
>
> BTW: why does gpm-1.20 have so agressive debugging messages enabled???
> Libgpm on client writes on terminal, gpm daemon writes to log every
> connect including the file and line in sources where is it processed.
> Could it be turned off?
Sorry, I had one bug in it that prevented it from working with old gpm.
This is correct patch for links.
Mikulas
--1908636959-1031222723-1023542279=:6098
Content-Type: TEXT/PLAIN; charset=US-ASCII; name=LINKS-SMOOTH-PATCH
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.LNX.4.44.0206081517590.6098@artax.karlin.mff.cuni.cz>
Content-Description: patch for framebuffer.c
Content-Disposition: attachment; filename=LINKS-SMOOTH-PATCH
LS0tIGZyYW1lYnVmZmVyLmNfCVNhdCBKdW4gIDggMTM6Mjc6MTggMjAwMg0K
KysrIGZyYW1lYnVmZmVyLmMJU2F0IEp1biAgOCAxNToxODo0MyAyMDAyDQpA
QCAtMzUsNiArMzUsMTIgQEANCiANCiAjaW5jbHVkZSAiYXJyb3cuaW5jIg0K
IA0KKyNpZmRlZiBHUE1fSEFWRV9TTU9PVEgNCisjZGVmaW5lIGdwbV9zbW9v
dGggR1BNX1NNT09USA0KKyNlbHNlDQorI2RlZmluZSBncG1fc21v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