rename variable
This commit is contained in:
6
tools.go
6
tools.go
@@ -696,12 +696,12 @@ func mapOutputs() (map[string]*gdk.Monitor, error) {
|
|||||||
|
|
||||||
num := display.GetNMonitors()
|
num := display.GetNMonitors()
|
||||||
for i := 0; i < num; i++ {
|
for i := 0; i < num; i++ {
|
||||||
monitor, _ := display.GetMonitor(i)
|
mon, _ := display.GetMonitor(i)
|
||||||
geometry := monitor.GetGeometry()
|
geometry := mon.GetGeometry()
|
||||||
// assign output to monitor on the basis of the same x, y coordinates
|
// assign output to monitor on the basis of the same x, y coordinates
|
||||||
for _, output := range outputs {
|
for _, output := range outputs {
|
||||||
if int(output.Rect.X) == geometry.GetX() && int(output.Rect.Y) == geometry.GetY() {
|
if int(output.Rect.X) == geometry.GetX() && int(output.Rect.Y) == geometry.GetY() {
|
||||||
result[output.Name] = monitor
|
result[output.Name] = mon
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user