mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-23 13:04:43 +02:00
Gtk3: fixed right mouse click behaviour.
This commit is contained in:
parent
e8fa62c8e7
commit
46def57926
@ -2290,11 +2290,7 @@ begin
|
|||||||
' Event.Type=',Event^.type_,' Capture=',LCLintf.GetCapture);
|
' Event.Type=',Event^.type_,' Capture=',LCLintf.GetCapture);
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
if Event^.button.send_event = NO_PROPAGATION_TO_PARENT then
|
if Event^.button.send_event = NO_PROPAGATION_TO_PARENT then
|
||||||
begin
|
|
||||||
if Event^.type_ <> GDK_BUTTON_RELEASE then
|
|
||||||
LCLIntf.SetCapture(HWND(Self));
|
|
||||||
exit(gtk_true);
|
exit(gtk_true);
|
||||||
end;
|
|
||||||
|
|
||||||
SavedHandle := PtrUInt(Self);
|
SavedHandle := PtrUInt(Self);
|
||||||
|
|
||||||
@ -2396,7 +2392,7 @@ begin
|
|||||||
if (SavedHandle <> PtrUInt(Self)) or (LCLObject = nil) or (FWidget = nil) then
|
if (SavedHandle <> PtrUInt(Self)) or (LCLObject = nil) or (FWidget = nil) then
|
||||||
exit;
|
exit;
|
||||||
|
|
||||||
DeliverMessage(MsgPopup, True);
|
Result := DeliverMessage(MsgPopup, True) <> 0;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
if not Result then
|
if not Result then
|
||||||
|
Loading…
Reference in New Issue
Block a user