Close xdg connection after querying

This commit is contained in:
CapCreeperGR 2024-05-16 17:01:11 +03:00
parent aba10e3e9e
commit 2af3ab1156

View File

@ -312,6 +312,7 @@ func getMonitorResolution() []string {
return nil
}
reply, _ := xinerama.QueryScreens(conn).Reply()
conn.Close()
for _, screen := range reply.ScreenInfo {
monitors = append(monitors, strconv.Itoa(int(screen.Width))+"x"+strconv.Itoa(int(screen.Height)))
}