app/internal/wm: rename confusing app/internal/window

Package wm (for "window manager") is a better fit for the package, and
distinguishes it from the low-level package windows for the Windows API.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2021-03-06 11:15:48 +01:00
parent 26d9e7fe5f
commit 7059b6284a
45 changed files with 63 additions and 63 deletions
+3 -3
View File
@@ -7,7 +7,7 @@ import (
"image/color"
"runtime"
"gioui.org/app/internal/window"
"gioui.org/app/internal/wm"
"gioui.org/gpu"
"gioui.org/op"
)
@@ -36,7 +36,7 @@ type frameResult struct {
err error
}
func newLoop(ctx window.Context) (*renderLoop, error) {
func newLoop(ctx wm.Context) (*renderLoop, error) {
l := &renderLoop{
frames: make(chan frame),
results: make(chan frameResult),
@@ -54,7 +54,7 @@ func newLoop(ctx window.Context) (*renderLoop, error) {
return l, nil
}
func (l *renderLoop) renderLoop(ctx window.Context) error {
func (l *renderLoop) renderLoop(ctx wm.Context) error {
// GL Operations must happen on a single OS thread, so
// pass initialization result through a channel.
initErr := make(chan error)