mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-04 08:20:25 +02:00
gtk2: relocate also mouseup and mousewheel messages for transparent windows
git-svn-id: trunk@52363 -
This commit is contained in:
parent
f68cca0ca9
commit
ae91dadc26
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user