Attempt to fix selectedCursor for linux.