diff options
| author | faiface <faiface2202@gmail.com> | 2019-05-07 01:38:54 +0200 |
|---|---|---|
| committer | faiface <faiface2202@gmail.com> | 2019-05-07 01:38:54 +0200 |
| commit | 511f1fb07d48e1264ccc9f486b806489b69f22ec (patch) | |
| tree | 0fe9f4cbf8a4e0390c9435a232ea80cb811fea86 | |
| parent | 0027d596f670efb1677338d5bd2226d77a20dd81 (diff) | |
| download | gui-511f1fb07d48e1264ccc9f486b806489b69f22ec.zip | |
minor
| -rw-r--r-- | mux.go | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -80,7 +80,8 @@ func (mux *Mux) makeEnv(master bool) Env { mux.mu.Lock() mux.eventsIns = append(mux.eventsIns, eventsIn) - // make sure to always send a resize event to a new Env if we got it already + // make sure to always send a resize event to a new Env if we got the size already + // that means it missed the resize event by the root Env if mux.haveR { eventsIn <- Eventf("resize/%d/%d/%d/%d", mux.r.Min.X, mux.r.Min.Y, mux.r.Max.X, mux.r.Max.Y) } |