projects
/
occt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e9b037e
)
0024136: Mouse move events from inactive Draw Harness window should not be processed...
author
kgv
<kgv@opencascade.com>
Thu, 29 Aug 2013 17:22:00 +0000
(21:22 +0400)
committer
bugmaster
<bugmaster@opencascade.com>
Thu, 5 Sep 2013 09:15:23 +0000
(13:15 +0400)
src/ViewerTest/ViewerTest_ViewerCommands.cxx
patch
|
blob
|
blame
|
history
diff --git
a/src/ViewerTest/ViewerTest_ViewerCommands.cxx
b/src/ViewerTest/ViewerTest_ViewerCommands.cxx
index
b1705d7
..
28eb559
100755
(executable)
--- a/
src/ViewerTest/ViewerTest_ViewerCommands.cxx
+++ b/
src/ViewerTest/ViewerTest_ViewerCommands.cxx
@@
-1974,7
+1974,8
@@
static LRESULT WINAPI ViewerWindowProc( HWND hwnd,
}
}
#endif
- else
+ else if (GetWindowHandle (VT_GetWindow()) == hwnd)
+ {
if ((fwKeys & MK_MBUTTON
|| ((fwKeys & MK_LBUTTON) && (fwKeys & MK_RBUTTON))))
{
@@
-1984,6
+1985,7
@@
static LRESULT WINAPI ViewerWindowProc( HWND hwnd,
{
VT_ProcessMotion();
}
+ }
}
break;
@@
-2186,6
+2188,10
@@
int ViewerMainLoop(Standard_Integer argc, const char** argv)
break;
case MotionNotify:
{
+ if (GetWindowHandle (VT_GetWindow()) != aReport.xmotion.window)
+ {
+ break;
+ }
if( IsDragged )
{
Aspect_Handle aWindow = VT_GetWindow()->XWindow();