Skip to content

Commit 6ed1583

Browse files
committed
Skip sending cidMouseMove commands when a GOB is tracking the mouse
This fixes assert failures in GOK::_FAdjustGms caused by unexpected cidMouseMove commands.
1 parent 8d6d419 commit 6ed1583

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

kauai/src/appb.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,11 @@ bool APPB::FCmdIdle(PCMD pcmd)
296296

297297
if ((_cactIdle & 0x0F) == 1 && pvNil != (pgob = GOB::PgobScreen()))
298298
{
299+
// Skip mouse move events if a GOB is tracking the mouse
300+
bool fTrackingMouse = vpcex->PgobTracking() != pvNil;
301+
if (fTrackingMouse)
302+
return fTrue;
303+
299304
// check to see if the mouse moved
300305
PT pt;
301306
bool fDown;

0 commit comments

Comments
 (0)