Close xdg connection after querying
This commit is contained in:
parent
aba10e3e9e
commit
2af3ab1156
1
utils.go
1
utils.go
@ -312,6 +312,7 @@ func getMonitorResolution() []string {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
reply, _ := xinerama.QueryScreens(conn).Reply()
|
reply, _ := xinerama.QueryScreens(conn).Reply()
|
||||||
|
conn.Close()
|
||||||
for _, screen := range reply.ScreenInfo {
|
for _, screen := range reply.ScreenInfo {
|
||||||
monitors = append(monitors, strconv.Itoa(int(screen.Width))+"x"+strconv.Itoa(int(screen.Height)))
|
monitors = append(monitors, strconv.Itoa(int(screen.Width))+"x"+strconv.Itoa(int(screen.Height)))
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user