Skip to content

Commit 6108c0d

Browse files
committed
WindowSystem: fix mouse position stuck in old position after closing top-most window
Solve by notifying new active window on cursor position
1 parent a33a3d4 commit 6108c0d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

WindowSystem.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,9 @@ void CWindowStack::Remove( CMenuBaseWindow *menu )
287287
if( stack[active]->IsRoot() && menu->IsRoot() )
288288
stack[active]->EnableTransition( CMenuBaseWindow::ANIM_OPENING );
289289

290+
// notify new active window about changed mouse position
291+
stack[active]->MouseMove( uiStatic.cursorX, uiStatic.cursorY );
292+
290293
break;
291294
}
292295
}

0 commit comments

Comments
 (0)