libdraw: die if display does
This commit is contained in:
parent
e113e0a4bb
commit
b65a69c192
2 changed files with 3 additions and 3 deletions
|
|
@ -9,7 +9,7 @@
|
||||||
#include <drawfcall.h>
|
#include <drawfcall.h>
|
||||||
#include <mux.h>
|
#include <mux.h>
|
||||||
|
|
||||||
int chattydrawclient;
|
int chattydrawclient = 0;
|
||||||
|
|
||||||
static int drawgettag(Mux *mux, void *vmsg);
|
static int drawgettag(Mux *mux, void *vmsg);
|
||||||
static void* drawrecv(Mux *mux);
|
static void* drawrecv(Mux *mux);
|
||||||
|
|
@ -43,7 +43,7 @@ _displayconnect(Display *d)
|
||||||
* Pass it along only so that the various
|
* Pass it along only so that the various
|
||||||
* devdraws in psu -a can be distinguished.
|
* devdraws in psu -a can be distinguished.
|
||||||
*/
|
*/
|
||||||
execl("devdraw", "devdraw", argv0, nil);
|
execl("devdraw", argv0, argv0, nil);
|
||||||
sysfatal("exec devdraw: %r");
|
sysfatal("exec devdraw: %r");
|
||||||
}
|
}
|
||||||
close(p[1]);
|
close(p[1]);
|
||||||
|
|
|
||||||
|
|
@ -53,7 +53,7 @@ _ioproc(void *arg)
|
||||||
resized = 0;
|
resized = 0;
|
||||||
for(;;){
|
for(;;){
|
||||||
if(_displayrdmouse(mc->display, &m, &resized) < 0)
|
if(_displayrdmouse(mc->display, &m, &resized) < 0)
|
||||||
threadexits("read error");
|
threadexitsall("mouse read error");
|
||||||
if(resized)
|
if(resized)
|
||||||
send(mc->resizec, &one);
|
send(mc->resizec, &one);
|
||||||
send(mc->c, &m);
|
send(mc->c, &m);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue