From ff091dca52ccefeaed956b9c6cacaf02cce8c00e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Salvador=20D=C3=ADaz=20Fau?= Date: Thu, 30 Oct 2025 18:45:36 +0100 Subject: [PATCH] Only call ShowX11Message when the display server is X11 --- source/uCEFApplicationCore.pas | 3 ++- update_CEF4Delphi.json | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/source/uCEFApplicationCore.pas b/source/uCEFApplicationCore.pas index eb0abd6c..64b623b5 100644 --- a/source/uCEFApplicationCore.pas +++ b/source/uCEFApplicationCore.pas @@ -3484,7 +3484,8 @@ begin if (WidgetSet <> nil) then Application.MessageBox(PChar(aError + #0), PChar('Error' + #0), MB_ICONERROR or MB_OK) else - ShowX11Message(aError); + if (DisplayServer = ldsX11) then + ShowX11Message(aError); {$ELSE} // TO-DO: Find a way to show message boxes in FMXLinux {$ENDIF} diff --git a/update_CEF4Delphi.json b/update_CEF4Delphi.json index ecd55a18..b6c838d1 100644 --- a/update_CEF4Delphi.json +++ b/update_CEF4Delphi.json @@ -2,7 +2,7 @@ "UpdateLazPackages" : [ { "ForceNotify" : true, - "InternalVersion" : 813, + "InternalVersion" : 814, "Name" : "cef4delphi_lazarus.lpk", "Version" : "141.0.11" }