Bug 346690, p=sergei_d, r=thesuckiestemail, NPOB
authorsergei_d@fi.tartu.ee
Sat, 19 Jan 2008 14:21:51 -0800
changeset 10445 0385ac298737e87973724a49176bd9161224ac23
parent 10444 000b156b4cb3503b1fc996fed4426b8d45f114c9
child 10446 ea8b90a87b0414d4e2fafa788808269369b4f43e
push id1
push userbsmedberg@mozilla.com
push dateThu, 20 Mar 2008 16:49:24 +0000
treeherdermozilla-central@61007906a1f8 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersthesuckiestemail, NPOB
bugs346690
milestone1.9b3pre
Bug 346690, p=sergei_d, r=thesuckiestemail, NPOB
widget/src/beos/nsWindow.cpp
--- a/widget/src/beos/nsWindow.cpp
+++ b/widget/src/beos/nsWindow.cpp
@@ -1254,16 +1254,18 @@ NS_METHOD nsWindow::SetCursor(nsCursor a
 {
 	if (!mView)
 		return NS_ERROR_FAILURE;
 
 	// Only change cursor if it's changing
 	if (aCursor != mCursor) 
 	{
 		BCursor const *newCursor = B_CURSOR_SYSTEM_DEFAULT;
+		if (be_app->IsCursorHidden())
+			be_app->ShowCursor();
 		
 		// Check to see if the array has been loaded, if not, do it.
 		if (gCursorArray.Count() == 0) 
 		{
 			gCursorArray.InsertElementAt((void*) new BCursor(cursorHyperlink),0);
 			gCursorArray.InsertElementAt((void*) new BCursor(cursorHorizontalDrag),1);
 			gCursorArray.InsertElementAt((void*) new BCursor(cursorVerticalDrag),2);
 			gCursorArray.InsertElementAt((void*) new BCursor(cursorUpperLeft),3);
@@ -1416,17 +1418,17 @@ NS_METHOD nsWindow::SetCursor(nsCursor a
 				newCursor = (BCursor *)gCursorArray.SafeElementAt(2);
 				break;
 
 			case eCursor_ew_resize:
 				newCursor = (BCursor *)gCursorArray.SafeElementAt(1);
 				break;
 
 			case eCursor_none:
-				// XXX: No suitable cursor, needs implementing
+				be_app->HideCursor();
 				break;
 
 			default:
 				NS_ASSERTION(0, "Invalid cursor type");
 				break;
 		}
 		NS_ASSERTION(newCursor != nsnull, "Cursor not stored in array properly!");
 		mCursor = aCursor;