Skip to content

Commit

Permalink
Display: don't report screen size when display is mirrored
Browse files Browse the repository at this point in the history
Fix #1406
  • Loading branch information
CarterLi committed Nov 21, 2024
1 parent 71b073e commit 9a1d185
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/detection/displayserver/displayserver_apple.c
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ static void detectDisplays(FFDisplayServerResult* ds)
}
}

if (!physicalWidth || !physicalHeight)
if ((!physicalWidth || !physicalHeight) && CGDisplayPrimaryDisplay(screen) == screen) // #1406
{
CGSize size = CGDisplayScreenSize(screen);
physicalWidth = (uint32_t) (size.width + 0.5);
Expand Down

0 comments on commit 9a1d185

Please sign in to comment.