mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-09 21:35:57 +02:00
(QT): call NotifyApplicationUserInput before every mouse message (not hint windows is trying to show)
git-svn-id: trunk@11563 -
This commit is contained in:
parent
ab36a6a9e3
commit
bf64d0ce17
@ -1154,6 +1154,7 @@ begin
|
||||
MouseMsg.YPos := SmallInt(MousePos^.Y);
|
||||
end;
|
||||
end;
|
||||
NotifyApplicationUserInput(Msg.Msg);
|
||||
DeliverMessage(Msg);
|
||||
end;
|
||||
|
||||
@ -1270,6 +1271,7 @@ begin
|
||||
QtRightButton: Msg.Msg := LM_RBUTTONDOWN;
|
||||
QtMidButton: Msg.Msg := LM_MBUTTONDOWN;
|
||||
end;
|
||||
NotifyApplicationUserInput(Msg.Msg);
|
||||
DeliverMessage(Msg);
|
||||
Msg.Msg := LM_PRESSED;
|
||||
DeliverMessage(Msg);
|
||||
@ -1282,6 +1284,7 @@ begin
|
||||
QtRightButton: Msg.Msg := LM_RBUTTONUP;
|
||||
QtMidButton: Msg.Msg := LM_MBUTTONUP;
|
||||
end;
|
||||
NotifyApplicationUserInput(Msg.Msg);
|
||||
DeliverMessage(Msg);
|
||||
{ Clicking on buttons operates differently, because QEventMouseButtonRelease
|
||||
is sent if you click a control, drag the mouse out of it and release, but
|
||||
@ -1353,6 +1356,7 @@ begin
|
||||
|
||||
Msg.Msg := LM_MOUSEMOVE;
|
||||
|
||||
NotifyApplicationUserInput(Msg.Msg);
|
||||
DeliverMessage(Msg);
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user