mirror of
https://github.com/EnumeratedDev/stormfetch.git
synced 2026-10-31 18:21:48 +00:00
Close xdg connection after querying
This commit is contained in:
1 parent
aba10e3e9e
commit
2af3ab1156
1 file changed
+1
@@ -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