mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-21 10:13:43 +03:00
0024136: Mouse move events from inactive Draw Harness window should not be processed on active window
This commit is contained in:
parent
e9b037efd2
commit
08398024d0
@ -1974,7 +1974,8 @@ static LRESULT WINAPI ViewerWindowProc( HWND hwnd,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
else
|
else if (GetWindowHandle (VT_GetWindow()) == hwnd)
|
||||||
|
{
|
||||||
if ((fwKeys & MK_MBUTTON
|
if ((fwKeys & MK_MBUTTON
|
||||||
|| ((fwKeys & MK_LBUTTON) && (fwKeys & MK_RBUTTON))))
|
|| ((fwKeys & MK_LBUTTON) && (fwKeys & MK_RBUTTON))))
|
||||||
{
|
{
|
||||||
@ -1985,6 +1986,7 @@ static LRESULT WINAPI ViewerWindowProc( HWND hwnd,
|
|||||||
VT_ProcessMotion();
|
VT_ProcessMotion();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
@ -2186,6 +2188,10 @@ int ViewerMainLoop(Standard_Integer argc, const char** argv)
|
|||||||
break;
|
break;
|
||||||
case MotionNotify:
|
case MotionNotify:
|
||||||
{
|
{
|
||||||
|
if (GetWindowHandle (VT_GetWindow()) != aReport.xmotion.window)
|
||||||
|
{
|
||||||
|
break;
|
||||||
|
}
|
||||||
if( IsDragged )
|
if( IsDragged )
|
||||||
{
|
{
|
||||||
Aspect_Handle aWindow = VT_GetWindow()->XWindow();
|
Aspect_Handle aWindow = VT_GetWindow()->XWindow();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user