Keep the mouse at the same location when preventing the screen saver to go

off... solves some weird issues.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31512 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus 2009-07-10 18:08:30 +00:00
parent 3621c97fdf
commit b07121279f

View File

@ -104,6 +104,7 @@ VideoView::Pulse()
uint32 buttons;
GetMouse(&where, &buttons, false);
if (buttons == 0) {
ConvertToScreen(&where);
set_mouse_position((int32)where.x, (int32)where.y);
// hide the mouse cursor until the user moves it
be_app->ObscureCursor();