diff options
Diffstat (limited to 'nexgb/examples/randr/main.go')
-rw-r--r-- | nexgb/examples/randr/main.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nexgb/examples/randr/main.go b/nexgb/examples/randr/main.go index 427aed6..414ef8d 100644 --- a/nexgb/examples/randr/main.go +++ b/nexgb/examples/randr/main.go @@ -45,7 +45,7 @@ func main() { log.Fatal(err) } - if len(info.Modes) > 0 { + if info.Connection == randr.ConnectionConnected { bestMode := info.Modes[0] for _, mode := range resources.Modes { if mode.Id == uint32(bestMode) { |