Skip to content

Commit 9a1d185

Browse files
committed
Display: don't report screen size when display is mirrored
Fix #1406
1 parent 71b073e commit 9a1d185

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/detection/displayserver/displayserver_apple.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ static void detectDisplays(FFDisplayServerResult* ds)
108108
}
109109
}
110110

111-
if (!physicalWidth || !physicalHeight)
111+
if ((!physicalWidth || !physicalHeight) && CGDisplayPrimaryDisplay(screen) == screen) // #1406
112112
{
113113
CGSize size = CGDisplayScreenSize(screen);
114114
physicalWidth = (uint32_t) (size.width + 0.5);

0 commit comments

Comments
 (0)