mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
[NTUSER] Fix Skype and other programs installer windows not able to be moved with mouse by clicking on title bar (#6819)
Patch by @I_Kill_Bugs Add condition into msgqueue along with filter testing to reject messages that are "NotForUs". Also, do not set AcceptMessage to FALSE, but just keep msgDblClk and idSysPeek values and continue. CORE-19487 CORE-19538
This commit is contained in:
parent
d234dc2d52
commit
0c0062ac9a
1 changed files with 8 additions and 2 deletions
|
@ -1945,6 +1945,7 @@ co_MsqPeekHardwareMessage(IN PTHREADINFO pti,
|
|||
ULONG_PTR idSave;
|
||||
DWORD QS_Flags;
|
||||
LONG_PTR ExtraInfo;
|
||||
MSG clk_msg;
|
||||
BOOL Ret = FALSE;
|
||||
PUSER_MESSAGE_QUEUE MessageQueue = pti->MessageQueue;
|
||||
|
||||
|
@ -1994,17 +1995,22 @@ co_MsqPeekHardwareMessage(IN PTHREADINFO pti,
|
|||
msg = CurrentMessage->Msg;
|
||||
ExtraInfo = CurrentMessage->ExtraInfo;
|
||||
QS_Flags = CurrentMessage->QS_Flags;
|
||||
clk_msg = MessageQueue->msgDblClk;
|
||||
|
||||
NotForUs = FALSE;
|
||||
|
||||
UpdateKeyStateFromMsg(MessageQueue, &msg);
|
||||
AcceptMessage = co_IntProcessHardwareMessage(&msg, &Remove, &NotForUs, ExtraInfo, MsgFilterLow, MsgFilterHigh);
|
||||
|
||||
if (MsgFilterLow != 0 || MsgFilterHigh != 0)
|
||||
if (!NotForUs && (MsgFilterLow != 0 || MsgFilterHigh != 0))
|
||||
{
|
||||
/* Don't return message if not in range */
|
||||
if (msg.message < MsgFilterLow || msg.message > MsgFilterHigh)
|
||||
AcceptMessage = FALSE;
|
||||
{
|
||||
MessageQueue->msgDblClk = clk_msg;
|
||||
MessageQueue->idSysPeek = idSave;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
if (Remove)
|
||||
|
|
Loading…
Reference in a new issue