aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfaiface <faiface2202@gmail.com>2019-05-07 01:38:54 +0200
committerfaiface <faiface2202@gmail.com>2019-05-07 01:38:54 +0200
commit511f1fb07d48e1264ccc9f486b806489b69f22ec (patch)
tree0fe9f4cbf8a4e0390c9435a232ea80cb811fea86
parent0027d596f670efb1677338d5bd2226d77a20dd81 (diff)
downloadgui-511f1fb07d48e1264ccc9f486b806489b69f22ec.zip
minor
-rw-r--r--mux.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/mux.go b/mux.go
index 47f2330..756e5da 100644
--- a/mux.go
+++ b/mux.go
@@ -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)
}