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
+2 -2
View File
@@ -11,7 +11,7 @@ import (
"path/filepath"
"sync"
"gioui.org/app/internal/window"
"gioui.org/app/internal/wm"
)
var (
@@ -21,7 +21,7 @@ var (
func dataDir() (string, error) {
dataDirOnce.Do(func() {
dataPath = window.GetDataDir()
dataPath = wm.GetDataDir()
// Set XDG_CACHE_HOME to make os.UserCacheDir work.
if _, exists := os.LookupEnv("XDG_CACHE_HOME"); !exists {
cachePath := filepath.Join(dataPath, "cache")