mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-11 15:56:08 +02:00
Gtk3: capture must be set to control, so make TCustomControls happy
This commit is contained in:
parent
247765dd5d
commit
f6ceb6980a
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user