mirror of
https://github.com/EnumeratedDev/stormfetch.git
synced 2026-09-16 07:56:12 +00:00
Close xdg connection after querying
This commit is contained in:
@@ -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)))
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user