diff options
author | cinap_lenrek <cinap_lenrek@gmx.de> | 2013-10-04 02:17:53 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@gmx.de> | 2013-10-04 02:17:53 +0200 |
commit | fe03ec0e21bf2491b7746e81053e91636eb1aa9c (patch) | |
tree | cdcd604ef0436af5c3ab9d126aca6d669076fff7 /sys/src/cmd/rio/dat.h | |
parent | 60e3d2782b30019769bd250c15329108fab1cc5a (diff) |
rio: gone windows, window resize, rectonscreen, goodrect
dont rely on postnote to shutdown client. instead, make reads on
cons, kbd and mouse error. when we mount a window system over
exportfs, the pid useless and even dangerous! pid should be
only used by clients forked by rio itself.
fix bug in resized(), goodrect() takes rect in screen coordinates!
make rectonscreen() fix window size if the window doesnt fit
on the screen.
improve goodrect() to check for windows outside of the screen or
bigger than screen without borders visible.
Diffstat (limited to 'sys/src/cmd/rio/dat.h')
-rw-r--r-- | sys/src/cmd/rio/dat.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/src/cmd/rio/dat.h b/sys/src/cmd/rio/dat.h index e1d617ac9..f4f7f4efa 100644 --- a/sys/src/cmd/rio/dat.h +++ b/sys/src/cmd/rio/dat.h @@ -129,17 +129,18 @@ struct Window Ref; QLock; Frame; - Image *i; - Mousectl mc; + Image *i; /* window image, nil when deleted */ + Mousectl mc; Mouseinfo mouse; - Channel *ck; /* chan(char*) */ + Channel *ck; /* chan(char*) */ Channel *cctl; /* chan(Wctlmesg)[4] */ Channel *conswrite; /* chan(Conswritemesg) */ Channel *consread; /* chan(Consreadmesg) */ Channel *mouseread; /* chan(Mousereadmesg) */ - Channel *wctlread; /* chan(Consreadmesg) */ + Channel *wctlread; /* chan(Consreadmesg) */ Channel *kbdread; /* chan(Kbdreadmesg) */ Channel *complete; /* chan(Completion*) */ + Channel *gone; /* chan(char*) */ uint nr; /* number of runes in window */ uint maxr; /* number of runes allocated in r */ Rune *r; |