gtk2: relocate also mouseup and mousewheel messages for transparent windows

git-svn-id: trunk@52363 -
This commit is contained in:
ondrej 2016-05-23 15:39:50 +00:00
parent f68cca0ca9
commit ae91dadc26

View File

@ -2243,6 +2243,9 @@ var
begin
Result := False;
CheckTransparentWindow({%H-}TLCLIntfHandle(widget), AWinControl);
if (widget=nil) or (AWinControl=nil) then
Exit;
EventXY := Point(TruncToInt(Event^.X), TruncToInt(Event^.Y));
MappedXY := TranslateGdkPointToClientArea(Event^.Window,
EventXY,
@ -2428,6 +2431,9 @@ begin
Result := False;
AWinControl:=TWinControl(Data);
CheckTransparentWindow({%H-}TLCLIntfHandle(widget), AWinControl);
if (widget=nil) or (AWinControl=nil) then
Exit;
EventXY:=Point(TruncToInt(Event^.X),TruncToInt(Event^.Y));
ShiftState := GTKEventStateToShiftState(Event^.State);
MappedXY:=TranslateGdkPointToClientArea(Event^.Window,EventXY,