From 2d75f771bfd5263ad365b26dcd45925263ab0889 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Tue, 9 Jan 2007 23:33:57 +0000 Subject: [PATCH] Fixed minor ugliness (only visible on slow systems, such as Qemu): the mouse cursor was drawn before the background got cleared. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19756 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/servers/app/Desktop.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/servers/app/Desktop.cpp b/src/servers/app/Desktop.cpp index cae2d3ee60..70b4710922 100644 --- a/src/servers/app/Desktop.cpp +++ b/src/servers/app/Desktop.cpp @@ -362,12 +362,8 @@ Desktop::Init() // TODO: temporary workaround, fActiveScreen will be removed fActiveScreen = fVirtualScreen.ScreenAt(0); - SetCursor(NULL); - // this will set the default cursor - fVirtualScreen.HWInterface()->MoveCursorTo(fVirtualScreen.Frame().Width() / 2, fVirtualScreen.Frame().Height() / 2); - fVirtualScreen.HWInterface()->SetCursorVisible(true); #if TEST_MODE gInputManager->AddStream(new InputServerStream); @@ -393,6 +389,11 @@ Desktop::Init() gFontManager->AttachUser(fUserID); + SetCursor(NULL); + // this will set the default cursor + + fVirtualScreen.HWInterface()->SetCursorVisible(true); + return B_OK; }