Skip to content

Commit da93e02

Browse files
committed
Better compatibility for xauth family.
1 parent eb80fba commit da93e02

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/x11.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ func readXAuthority(displayNum, xauthorityPath string) (string, []byte, error) {
8686
return "", nil, err
8787
}
8888

89-
if family == 256 &&
89+
if (family == 0 || family == 256) &&
9090
display == displayNum &&
9191
name == "MIT-MAGIC-COOKIE-1" {
9292
return name, []byte(authData), nil

0 commit comments

Comments
 (0)