mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-12 11:10:07 +00:00
mouse(3): fix definition of Mousectl
This commit is contained in:
parent
86bfd6075d
commit
125cfe1c0d
1 changed files with 6 additions and 4 deletions
|
@ -88,15 +88,15 @@ returns a structure through which one may access the mouse:
|
||||||
typedef struct Mousectl Mousectl;
|
typedef struct Mousectl Mousectl;
|
||||||
struct Mousectl
|
struct Mousectl
|
||||||
{
|
{
|
||||||
Mouse;
|
Mouse m;
|
||||||
Channel *c; /* chan(Mouse)[16] */
|
Channel *c; /* chan(Mouse)[16] */
|
||||||
Channel *resizec; /* chan(int)[2] */
|
Channel *resizec; /* chan(int)[2] */
|
||||||
|
|
||||||
char *file;
|
char *file;
|
||||||
int mfd; /* to mouse file */
|
int mfd; /* to mouse file */
|
||||||
int cfd; /* to cursor file */
|
int cfd; /* to cursor file */
|
||||||
int pid; /* of slave proc */
|
int pid; /* of slave proc */
|
||||||
Image* image; /* of associated window/display */
|
Image* image; /* of associated window/display */
|
||||||
};
|
};
|
||||||
.EE
|
.EE
|
||||||
.PP
|
.PP
|
||||||
|
@ -142,7 +142,9 @@ to reconnect to the window.
|
||||||
.I Readmouse
|
.I Readmouse
|
||||||
updates the
|
updates the
|
||||||
.B Mouse
|
.B Mouse
|
||||||
structure held in the
|
structure
|
||||||
|
.B m
|
||||||
|
held in the
|
||||||
.BR Mousectl ,
|
.BR Mousectl ,
|
||||||
blocking if the state has not changed since the last
|
blocking if the state has not changed since the last
|
||||||
.I readmouse
|
.I readmouse
|
||||||
|
|
Loading…
Reference in a new issue