diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2015-09-20 12:25:01 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2015-09-20 12:25:01 +0200 |
commit | d1315ade4171b25039a60b01d8fd8f39d822cc10 (patch) | |
tree | 50dc1dae935522b2e805c29e33b346b6c4a894f9 /sys/src/libdraw/mouse.c | |
parent | 30a9d5907018a578873bff2f7f1eaccfcc4d5a1f (diff) |
libdraw, screenrc: bind devdraw and devmouse in screenrc instead of handling it in libdraw
libdraw was attempting to bind '#i' and '#m' to /dev when it could not find
/dev/mouse or /dev/draw. a library shouldnt be that clever and do namespace
manipulations on behalf of the caller. so instead, we setup the graphics
environment in screenrc on boot time.
Diffstat (limited to 'sys/src/libdraw/mouse.c')
-rw-r--r-- | sys/src/libdraw/mouse.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/sys/src/libdraw/mouse.c b/sys/src/libdraw/mouse.c index ceb93819d..6138d03c7 100644 --- a/sys/src/libdraw/mouse.c +++ b/sys/src/libdraw/mouse.c @@ -99,10 +99,6 @@ initmouse(char *file, Image *i) file = "/dev/mouse"; mc->file = strdup(file); mc->mfd = open(file, ORDWR|OCEXEC); - if(mc->mfd<0 && strcmp(file, "/dev/mouse")==0){ - bind("#m", "/dev", MAFTER); - mc->mfd = open(file, ORDWR|OCEXEC); - } if(mc->mfd < 0){ free(mc); return nil; |