fix: correctly parse current config with xrandr 1.4
This commit is contained in:
parent
aee9bc4f84
commit
ad78b69d3a
|
@ -86,7 +86,7 @@ public class XRandR
|
||||||
name = sa[ 0 ];
|
name = sa[ 0 ];
|
||||||
|
|
||||||
// record the current config
|
// record the current config
|
||||||
parseScreen( currentList, name, sa[ 2 ] );
|
parseScreen( currentList, name, "primary".equals(sa[ 2 ]) ? sa[ 3 ] : sa[ 2 ] );
|
||||||
}
|
}
|
||||||
else if( Pattern.matches( "\\d*x\\d*", sa[ 0 ] ) )
|
else if( Pattern.matches( "\\d*x\\d*", sa[ 0 ] ) )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue