devicescale: Rename XFCE -> Xfce

This commit is contained in:
Hajime Hoshi 2018-01-04 17:16:02 +09:00
parent ee87a0fd71
commit 4bcb2e5682
2 changed files with 4 additions and 4 deletions

View File

@ -34,7 +34,7 @@ const (
desktopCinnamon
desktopUnity
desktopKDE
desktopXFCE
desktopXfce
)
func currentDesktop() desktop {
@ -49,7 +49,7 @@ func currentDesktop() desktop {
case "KDE":
return desktopKDE
case "XFCE":
return desktopXFCE
return desktopXfce
default:
return desktopUnknown
}
@ -115,7 +115,7 @@ func impl() float64 {
case desktopKDE:
// TODO: Implement
return 1
case desktopXFCE:
case desktopXfce:
// TODO: Implement
return 1
}

2
run.go
View File

@ -296,7 +296,7 @@ func SetWindowIcon(iconImages []image.Image) {
ui.SetWindowIcon(iconImages)
}
// DeviceScaleFactor returns a device scale value.
// DeviceScaleFactor returns a device scale factor value.
//
// DeviceScaleFactor returns a meaningful value on high-DPI display environment,
// otherwise DeviceScaleFactor returns 1.