lcl: TCustomForm.GetMonitor consider poDefaultPosOnly

This commit is contained in:
mattias 2022-05-16 12:14:10 +02:00
parent 2f157a3810
commit c161bf52f0

View File

@ -2427,7 +2427,7 @@ begin
begin
// first time showing, check Position and DefaultMonitor
case Position of
poDefault:
poDefault, poDefaultPosOnly:
Result := Screen.MonitorFromWindow(Handle, mdNull);
poDesigned, poDefaultSizeOnly:
Result := Screen.MonitorFromPoint(point(Left,Top));