* Source/x11/XGServerWindow.m (screenList): fixed missed rename count

into `monitorsCount` on non-RandR code.
This commit is contained in:
Sergii Stoian 2020-01-30 14:08:59 +02:00
parent c4631e0fc3
commit 7e6dfa39e8

View file

@ -4473,7 +4473,7 @@ _computeDepth(int class, int bpp)
put the main screen first */
[screens addObject: [NSNumber numberWithInt: defScreen]];
}
for (i = 0; i < count; i++)
for (i = 0; i < monitorsCount; i++)
{
if (i != defScreen)
[screens addObject: [NSNumber numberWithInt: i]];