app/internal/window: fix golint issues

app/internal/window/os_wayland.go:1448:12: gioui.org/io/system.StageEvent composite literal uses unkeyed fields
	app/internal/window/os_x11.go:183:12: gioui.org/io/system.StageEvent composite literal uses unkeyed fields

Signed-off-by: Robin Eklind
This commit is contained in:
Robin Eklind
2020-12-15 01:01:55 +01:00
parent 578c226278
commit f3ce6ad29a
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1445,7 +1445,7 @@ func (w *window) setStage(s system.Stage) {
return
}
w.stage = s
w.w.Event(system.StageEvent{s})
w.w.Event(system.StageEvent{Stage: s})
}
func (w *window) display() *C.struct_wl_display {
+1 -1
View File
@@ -180,7 +180,7 @@ func (w *x11Window) setStage(s system.Stage) {
return
}
w.stage = s
w.w.Event(system.StageEvent{s})
w.w.Event(system.StageEvent{Stage: s})
}
func (w *x11Window) loop() {