Files
overlord/Overlord-Client/cmd/agent/capture/monitors_linux.go
T

31 lines
504 B
Go
Raw Normal View History

2026-04-03 13:24:49 -05:00
//go:build linux
package capture
import (
"image"
"github.com/kbinani/screenshot"
)
func displayBounds(idx int) image.Rectangle {
return screenshot.GetDisplayBounds(idx)
}
func displayScale(idx int) float64 {
return 1.0
}
func MonitorInfos() []MonitorInfo {
n := screenshot.NumActiveDisplays()
infos := make([]MonitorInfo, 0, n)
for i := 0; i < n; i++ {
b := screenshot.GetDisplayBounds(i)
infos = append(infos, MonitorInfo{
Width: b.Dx(),
Height: b.Dy(),
})
}
return infos
}