fix: correctly parse current config with xrandr 1.4

This commit is contained in:
tulius 2013-04-27 21:49:29 +02:00
parent aee9bc4f84
commit ad78b69d3a
1 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,7 @@ public class XRandR
name = sa[ 0 ];
// 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 ] ) )
{