diff options
author | cinap_lenrek <cinap_lenrek@gmx.de> | 2013-01-09 16:32:53 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@gmx.de> | 2013-01-09 16:32:53 +0100 |
commit | 681bcfa96897805c8b13c1ad29aa26841d839347 (patch) | |
tree | 3a0f82a50d873b175f8ebd3225e1a091849e57f1 /sys/src/cmd/rio/dat.h | |
parent | 1c69f9c023e64225ffca05f955077012880accb4 (diff) |
rio: fix window resize and attach race
if a window gets hidden/unhidden/resized too fast, the client might have no
chance attaching to that image using winname. so we move the window
offscreen instead and delay the freeimage() by doing it in the deletethread().
Diffstat (limited to 'sys/src/cmd/rio/dat.h')
-rw-r--r-- | sys/src/cmd/rio/dat.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/src/cmd/rio/dat.h b/sys/src/cmd/rio/dat.h index 1f12eef48..3c7313113 100644 --- a/sys/src/cmd/rio/dat.h +++ b/sys/src/cmd/rio/dat.h @@ -38,6 +38,7 @@ typedef struct Mousestate Mousestate; typedef struct Ref Ref; typedef struct Timer Timer; typedef struct Wctlmesg Wctlmesg; +typedef struct Wdelmesg Wdelmesg; typedef struct Window Window; typedef struct Xfid Xfid; @@ -80,6 +81,12 @@ struct Wctlmesg void *p; }; +struct Wdelmesg +{ + char *s; + Image *i; +}; + struct Conswritemesg { Channel *cw; /* chan(Stringpair) */ |