LCL-GTK2: Enable propagation of mouse xbutton up/down events. Issue #31456, patch from Jeppe Johansen.

git-svn-id: trunk@54324 -
This commit is contained in:
juha 2017-03-01 16:57:31 +00:00
parent 7881c83d01
commit 8cbe7a228e

View File

@ -2037,6 +2037,11 @@ var
MessI.Msg := CheckMouseButtonDownUp({%H-}TLCLIntfHandle(widget), AWinControl, LastMouse, EventXY, MouseButton, True);
MessI.Keys := MessI.Keys or BtnKey;
case LastMouse.ClickCount of
1:
case BtnKey of
MK_XBUTTON1: MessI.Keys:=MessI.Keys or (1 shl 16);
MK_XBUTTON2: MessI.Keys:=MessI.Keys or (2 shl 16);
end;
2: MessI.Keys := MessI.Keys or MK_DOUBLECLICK;
3: MessI.Keys := MessI.Keys or MK_TRIPLECLICK;
4: MessI.Keys := MessI.Keys or MK_QUADCLICK;