libdraw: add visibleclicks mode
R=rsc http://codereview.appspot.com/6501137
This commit is contained in:
parent
6f568da64e
commit
54bebe6a69
3 changed files with 54 additions and 2 deletions
|
|
@ -9,6 +9,7 @@
|
|||
#include <drawfcall.h>
|
||||
#include <mux.h>
|
||||
|
||||
extern Mouse _drawmouse;
|
||||
int chattydrawclient = 0;
|
||||
|
||||
static int drawgettag(Mux *mux, void *vmsg);
|
||||
|
|
@ -259,6 +260,7 @@ _displayrdmouse(Display *d, Mouse *m, int *resized)
|
|||
tx.type = Trdmouse;
|
||||
if(displayrpc(d, &tx, &rx, nil) < 0)
|
||||
return -1;
|
||||
_drawmouse = rx.mouse;
|
||||
*m = rx.mouse;
|
||||
*resized = rx.resized;
|
||||
return 0;
|
||||
|
|
@ -283,7 +285,10 @@ _displaymoveto(Display *d, Point p)
|
|||
|
||||
tx.type = Tmoveto;
|
||||
tx.mouse.xy = p;
|
||||
return displayrpc(d, &tx, &rx, nil);
|
||||
if(displayrpc(d, &tx, &rx, nil) < 0)
|
||||
return -1;
|
||||
_drawmouse.xy = p;
|
||||
return flushimage(d, 1);
|
||||
}
|
||||
|
||||
int
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue