Gtk3: capture must be set to control, so make TCustomControls happy

This commit is contained in:
zeljan1 2025-02-23 12:26:19 +01:00
parent 247765dd5d
commit f6ceb6980a

View File

@ -2275,7 +2275,8 @@ begin
{$ENDIF}
if Event^.button.send_event = NO_PROPAGATION_TO_PARENT then
begin
LCLIntf.SetCapture(0); //must be so, otherwise form grabs everything under gtk :(
if Event^.type_ <> GDK_BUTTON_RELEASE then
LCLIntf.SetCapture(HWND(Self));
exit(gtk_true);
end;