mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-11 21:55:56 +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}
|
{$ENDIF}
|
||||||
if Event^.button.send_event = NO_PROPAGATION_TO_PARENT then
|
if Event^.button.send_event = NO_PROPAGATION_TO_PARENT then
|
||||||
begin
|
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);
|
exit(gtk_true);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user