Skip to content

Commit

Permalink
Use new FocusFront
Browse files Browse the repository at this point in the history
  • Loading branch information
michaliskambi committed Jul 30, 2024
1 parent aab6d1b commit 4e40450
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions code/gameabstractviewdialog.pas
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,7 @@ procedure TAbstractViewDialog.ClickTransparentBackground(Sender: TObject);
begin
{ Only react to clicks directly on TransparentBackground,
not on children like colored rectangles showing dialog inside. }
if (Container.Focus.Count <> 0) and
(Container.Focus.Last = TransparentBackground) then
if Container.FocusFront = TransparentBackground then
ClickClose(nil);
end;

Expand Down

0 comments on commit 4e40450

Please sign in to comment.