mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-06 18:05:35 +00:00
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:
@@ -1445,7 +1445,7 @@ func (w *window) setStage(s system.Stage) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
w.stage = s
|
w.stage = s
|
||||||
w.w.Event(system.StageEvent{s})
|
w.w.Event(system.StageEvent{Stage: s})
|
||||||
}
|
}
|
||||||
|
|
||||||
func (w *window) display() *C.struct_wl_display {
|
func (w *window) display() *C.struct_wl_display {
|
||||||
|
|||||||
@@ -180,7 +180,7 @@ func (w *x11Window) setStage(s system.Stage) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
w.stage = s
|
w.stage = s
|
||||||
w.w.Event(system.StageEvent{s})
|
w.w.Event(system.StageEvent{Stage: s})
|
||||||
}
|
}
|
||||||
|
|
||||||
func (w *x11Window) loop() {
|
func (w *x11Window) loop() {
|
||||||
|
|||||||
Reference in New Issue
Block a user